From 52dbc208a65a63d43a79b8726fe7997192786f19 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 26 Nov 2013 20:03:19 +0000 Subject: [PATCH] Don't reset value to array index if it's already there --- etemplate/inc/class.etemplate_widget_menupopup.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_menupopup.inc.php b/etemplate/inc/class.etemplate_widget_menupopup.inc.php index 7874c4a82c..0da153e25a 100644 --- a/etemplate/inc/class.etemplate_widget_menupopup.inc.php +++ b/etemplate/inc/class.etemplate_widget_menupopup.inc.php @@ -202,7 +202,7 @@ class etemplate_widget_menupopup extends etemplate_widget if(is_array($label)) { self::fix_encoded_options($label, false); - if ($use_array_of_objects) $label['value'] = $value; + if ($use_array_of_objects && !array_key_exists('value', $label)) $label['value'] = $value; } else {