Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-73514

auto fields custom message is not replicated when adding fields

    Details

      Description

      Description for ee-6.2.x

      When using custom error message for auto fields, the custom error message is not replicated for newly added fields

      description for master

      auto_fields.js behaves strangely:

      • -custom validator is not called when field is empty
      • error messages are multiplied (1 for the first field, two for the second, three for the third, etc) this issue disappeared
      • the custom error message is not replicated for newly added fields: THIS FIX FIXES ONLY THIS ISSUE

      steps to reproduce

      • Deploy the attached portlet
        It is a pure view.jsp file which creates a form and instantiate auto fields for the only input field
        with a custom error message. The erro should be fired when the input is empty
      • put it onto a page
      • Leave the input field empty and press TAB button (on master, write something into the input field and press TAB)
      • notice the custom error message
      • Add a new field with the "+" button
      • Repeat the step
      • Consider the default error message (two error messages on master)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              peter.borkuti Peter Borkuti (Inactive)
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 26 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP26
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master