Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-6148

A repeater with min size >= 0 is always considered as invalid

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.9
    • None
    • None
    • None

      Define a mandatory repeater (with min size >= 1), for example:

       <cms:repeater name="statistics" initial-size="0" min-size="1">
                  <cms:label i18n="false">Statistics</cms:label>
                  <cms:description i18n="false">Statistics</cms:description>
                  <cms:add-label i18n="false">Add an entry</cms:add-label>
                  <cms:del-label i18n="false">Delete entry</cms:del-label>
                  ...
      </cms:repeater>
      

      Go in edition and fill one or more repeater entries.
      Save content

      An error displays that repeater's field is invalid

      The repeater 'statictics' must contain at least 1 entries.

      It is impossible to save content

            Unassigned Unassigned
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: