Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22431

Creation Restrictions shouldn't allow adding duplicate locations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 11.10.13
    • Administration
    • None
    • Windows 11 Pro, Chrome 127, using a local instance of XWiki 16.4.2 on MySQL 9.0.1, Tomcat 9.0.93
    • Unknown

    Description

      Steps to reproduce

      1. Login as Admin
      2. Go to Administer Wiki > Content > Page Templates
      3. Write a "Template Provider" name in the Title field
      4. Click on 'Create' button
      5. Under Creation Restrictions select a location e.g. 'Home'
      6. Click "+" and add again the same location e.g. 'Home'

      Expected results

      The location is displayed a single time in the list of locations.

      Actual results

      The location is duplicated, being displayed as many times as it's being added.

      The same issue can be reproduced when creating an AppWithinMinutes for ex. at Step 3 under "Where to create entries" section.

      I've also reproduced this on XWiki 16.4.2, 16.6.0 and 11.10.13, but it may be reproducible on older versions as well.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: