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

Skip validation of empty non-mandatory field

    XMLWordPrintable

Details

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

    Description

      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).

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      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