Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.11.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      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)

      { $validationErrors = [ new ValidationError( "Value for required field definition '%identifier%' with language '%languageCode%' is empty", null, ['%identifier%' => $fieldDefinition->identifier, '%languageCode%' => $value->field->languageCode], 'empty' ), ]; }

      } 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

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Pierandrea Della Putta
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: