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

The option "message" does not exist in constraint

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 3.3.7
    • Form Builder
    • None

    Description

      I'm trying to define an attribute as required with the following config

      ez_platform_form_builder:
          fields:
              button:
                  attributes:
                      notification_email:
                          validators:
                              required:
                                  options: {}
      
      

      Opening the editor gives me an error Message when i try to edit that field: "Notice: Undefined index: message". Called inĀ in vendor/ezsystems/ezplatform-form-builder/src/lib/Definition/Validator/ConstraintFactory.php (line 43)

      When i add the field "message"

       ez_platform_form_builder:
          fields:
              button:
                  attributes:
                      notification_email:
                          validators:
                              required:
                                  options: {}
                                  message: "required"

      it gives me another error "The option "message" does not exist in constraint "Symfony\Component\Validator\Constraints\Required"."

      So there is no way to mark the attribute as required

      Attachments

        Activity

          People

            Unassigned Unassigned
            9dcdb0dd-5caa-459b-93b0-1ce97332c3fa@accounts.ibexa.co Hannes Giesenow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: