From 1c52c64ba210662bbb9f59ff19213c94ec1682fe Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 9 Jan 2012 21:24:44 +0000 Subject: [PATCH] for account-selection method "selectbox", make sure everything in $selected gets an option, as for the other methods --- phpgwapi/inc/class.uiaccountsel.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/inc/class.uiaccountsel.inc.php b/phpgwapi/inc/class.uiaccountsel.inc.php index 1982a200fc..cc1c53dda0 100644 --- a/phpgwapi/inc/class.uiaccountsel.inc.php +++ b/phpgwapi/inc/class.uiaccountsel.inc.php @@ -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();