From 3630f964fbcea476301e5787245adec412ccaae7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 8 May 2007 09:00:22 +0000 Subject: [PATCH] "fix for bug: can not unselect users from a multiple user selection (eg. InfoLog delegates), if the original value is in $preserv array" --- etemplate/inc/class.boetemplate.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.boetemplate.inc.php b/etemplate/inc/class.boetemplate.inc.php index 1eb654ac0f..ed3e8713fd 100644 --- a/etemplate/inc/class.boetemplate.inc.php +++ b/etemplate/inc/class.boetemplate.inc.php @@ -712,7 +712,8 @@ foreach($new as $k => $v) { - if (!is_array($v) || !isset($old[$k])) + if (!is_array($v) || !isset($old[$k]) || // no array or a new array + isset($v[0]) && isset($v[count($v)-1])) // or no associative array, eg. selecting multiple accounts { $old[$k] = $v; }