* sort and unify group lists at display and save time
 * autocompletion only yields groups that are not assigned yet
This commit is contained in:
Jan Dittberner 2007-12-03 15:01:45 +00:00
parent 0993d2be3a
commit b415533dd5
3 changed files with 9 additions and 4 deletions

View file

@ -52,7 +52,8 @@ function getGroups($part) {
foreach ($groups as $line) {
list($group, $users) = explode(":", $line);
$group = trim($group);
if (stripos($group, $last_string) === 0) {
if (!in_array($group, $array) &&
(stripos($group, $last_string) === 0)) {
$retval[$prefix . $group] = $group;
}
}