mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Sharing: even if a user has more groups in common, he should appear only once in the dropdown list
This commit is contained in:
parent
fae1ce4ea7
commit
eb7e2d7d35
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ foreach ($userGroups as $group) {
|
|||
$groups[] = "<option value='".$group."(group)'>".$group." (group) </option>";
|
||||
}
|
||||
}
|
||||
$users = array_unique($users);
|
||||
$users[] = "</optgroup>";
|
||||
$groups[] = "</optgroup>";
|
||||
$users = array_merge($users, $groups);
|
||||
|
|
|
|||
Loading…
Reference in a new issue