mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
* API: fix account-selection-method "selectbox" containing selected account double (eg. in Admin >> Manage groups)
This commit is contained in:
parent
4a261802e4
commit
f62b4784a0
@ -180,9 +180,12 @@ class uiaccountsel
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
// make sure everything in $selected is also in $select, as in the other account-selection methods
|
// make sure everything in $selected is also in $select, as in the other account-selection methods
|
||||||
if ($selected && ($missing = array_diff($selected,$select)))
|
if ($selected && ($missing = array_diff_key($selected,$select)))
|
||||||
{
|
{
|
||||||
$select = array_merge($missing,$select);
|
foreach($missing as $k => $v) // merge missing (cant use array_merge, because of nummeric keys!)
|
||||||
|
{
|
||||||
|
$select[$k] = $v;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user