mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
* API: fix account-selection-method "selectbox" containing selected account double (eg. in Admin >> Manage groups)
This commit is contained in:
parent
5b2025cd0f
commit
c6ee20840a
@ -178,6 +178,14 @@ class uiaccountsel
|
||||
'app' => $app,
|
||||
));
|
||||
}
|
||||
// make sure everything in $selected is also in $select, as in the other account-selection methods
|
||||
if ($selected && ($missing = array_diff_key($selected,$select)))
|
||||
{
|
||||
foreach($missing as $k => $v) // merge missing (cant use array_merge, because of nummeric keys!)
|
||||
{
|
||||
$select[$k] = $v;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
$already_selected = $users = $groups = array();
|
||||
|
Loading…
Reference in New Issue
Block a user