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

User suggest picker doesn't honor the limit for local users

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      To reproduce:

      • Create at least 10 users in you wiki
      • Edit suggestUsersAndGroups.js and replace the 2 locations where there's 10 by 5.
      • Create a page with the following content:
        {{velocity}}
        {{html}}
        #set ($userPickerParams = {
          'data-userScope' : 'LOCAL_ONLY'
        })
        #userPicker(true, $userPickerParams)
        {{/html}}
        {{/velocity}}
      • Open your browser dev tool and make sure cache is disabled for javascript.

      Notice that 10 results are returned.

      Then:

      • Replace "LOCAL_ONLY" by "LOCAL_AND_GLOBAL"

      Notice that 5 results are returned correctly.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: