Details
-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
-
1.11.0
-
None
-
None
-
Debian 8, Apache 2.4, PHP 5.6
Description
With ezplatfrom 1.11.0 in class vendor/ezsystems/repository-forms/lib/Validator/Constraints/FieldValueValidator.php in method validate($value, Constraint $constraint) there is a piece of code
$validationErrors = [];
if ($fieldType->isEmptyValue($fieldValue)) {
if ($fieldDefinition->isRequired)
} else
{ $validationErrors = $fieldType->validateValue($fieldDefinition, $fieldValue); }With this code, I must insert default value for the filedtype that are request ONLY if the class already existed.
I upgrade ezplatform from 1.10.1 to 1.11.0