There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f7d521ec-4eb8-4577-9273-d2cea35e6e1a XWIKI-22373 Open

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

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-e3b4eaa2-65f9-48be-bf62-616132e4369a Marius Dumitru Florea on 31/Jul/24 14:08
 

The problem is not with the user picker widget itself, but rather with the service used to fetch the suggested users. The user picker widget passes the limit as a request parameter, but the suggest service, uorgsuggest.vm hardcodes the limit to 10 here https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/uorgsuggest.vm#L48 . The fix is to read the limit from the request parameter, defaulting to 10 if no value is specified.