Tweaked earlier fix for ALF-9441 (Invitation process still uses lucene based searches to find people and groups to invite) to behave correctly when a zone is present.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29058 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2011-07-14 19:57:14 +00:00
parent 600abe7460
commit 43b6c85bbe

View File

@@ -56,15 +56,8 @@ function main()
if (authorityType == null || authorityType == "GROUP")
{
// Get the collection of groups
if (zone == null)
{
paging = utils.createPaging(maxResults, -1);
groupsFound = groups.getGroups(filter, paging);
}
else
{
groupsFound = groups.searchGroupsInZone(filter, zone);
}
paging = utils.createPaging(maxResults, -1);
groupsFound = groups.getGroupsInZone(filter, zone, paging, "displayName");
// Filter this collection for site membership
for (i = 0, ii = groupsFound.length; i < ii; i++)