Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2535

Error when setting min / max value constraints on form builder number field

    XMLWordPrintable

Details

    Description

      When setting a min or max value constraint on a number field, the following exception is thrown when going back to the content edit form:

      Type error: Argument 1 passed to EzSystems\EzPlatformFormBuilder\Form\Validator\Constraints\MaxValue::__construct() must be of the type float or null, string given, called in /Users/bdunogier/ezplatform-graphql/vendor/ezsystems/ezplatform-form-builder/src/lib/Form/Mapper/FieldValidator/GenericFieldValidatorConstraintMapper.php on line 50
      

      It happens when setting one of them or both, but not when none is set.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: