fix text fields and exists operator

This commit is contained in:
2023-10-25 14:19:44 +03:00
parent 535266db64
commit 944ba96d53
6 changed files with 20 additions and 58 deletions
+1 -1
View File
@@ -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;
}