for account-selection method "selectbox", make sure everything in $selected gets an option, as for the other methods

This commit is contained in:
Ralf Becker 2012-01-09 21:24:44 +00:00
parent cbf5203c8b
commit 1c52c64ba2

View File

@ -179,6 +179,11 @@ 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($selected,$select)))
{
$select = array_merge($missing,$select);
}
break;
}
$already_selected = $users = $groups = array();