Uploaded image for project: 'Magnolia Form Module'
  1. Magnolia Form Module
  2. MGNLFORM-275

Skip validation of empty non-mandatory field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.3.4
    • 1.4.8, 2.0.1
    • None
    • Saigon 29
    • 5

      There is a validation error when an empty field is validated.
      Here are the step to reproduce:

      1. create a form
      2. add a non mandatory input text field with email validator
      3. submit the form with empty input text
      4. a validation error occurs: the input text is not valid

      Looking at info.magnolia.module.form.templates.components.DefaultFormDataBinder i noticed that a field is validated if value != null. On previous version of form module the test was !StringUtils.isEmpty(value).

        Acceptance criteria

              oanh.thai Oanh Thai Hoang
              vgombert Vincent Gombert
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - 3d
                    3d
                    Remaining:
                    Time Spent - 2d 1.25h Remaining Estimate - 6.75h
                    6.75h
                    Logged:
                    Time Spent - 2d 1.25h Remaining Estimate - 6.75h
                    2d 1.25h