mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for error shown if empty search string used in Add User to Group dialog in Explorer.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19399 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -201,10 +201,12 @@ public class AddUsersDialog extends BaseDialogBean
|
||||
{
|
||||
public SelectItem[] execute() throws Exception
|
||||
{
|
||||
SelectItem[] items;
|
||||
SelectItem[] items = new SelectItem[0];
|
||||
|
||||
// Use lucene search to retrieve user details
|
||||
String term = LuceneQueryParser.escape(contains.trim());
|
||||
if (term.length() != 0)
|
||||
{
|
||||
StringBuilder query = new StringBuilder(128);
|
||||
Utils.generatePersonSearch(query, term);
|
||||
List<NodeRef> nodes;
|
||||
@@ -236,6 +238,7 @@ public class AddUsersDialog extends BaseDialogBean
|
||||
}
|
||||
items = new SelectItem[itemList.size()];
|
||||
itemList.toArray(items);
|
||||
}
|
||||
return items;
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user