fix text fields and exists operator
This commit is contained in:
1 parent
535266db64
commit
944ba96d53
6 files changed
+20
-58
No files matched your search
@@ -34,7 +34,7 @@ class Text implements FieldInterface, RequiredInterface
|
||||
|
||||
public function format(array $input, array $output): array
|
||||
{
|
||||
$value = (string)$input[$this->name] ?? null;
|
||||
$value = !empty($input[$this->name]) ? (string)$input[$this->name] : null;
|
||||
$output[$this->name] = (new Nullable($this->nullable, $value, ""))->value();
|
||||
return $output;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user