From 22dfe2a5dbfdd16e43c8a5ccaa52d3cf5d572476 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 8 Apr 2014 17:42:19 +0000 Subject: [PATCH] Any changed sel_options from app need to get encoded too. Fixes missing 'All' option in Tracker with Firefox. --- etemplate/inc/class.etemplate_widget_nextmatch.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php index 5e1a1ce232..2fab0270da 100644 --- a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php +++ b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php @@ -352,6 +352,15 @@ class etemplate_widget_nextmatch extends etemplate_widget } else // non-row data set by get_rows method { + // Encode all select options and re-index to avoid Firefox's problem with + // '' => 'All' + if($n == 'sel_options') + { + foreach($row as $select => &$options) + { + etemplate_widget_menupopup::fix_encoded_options($options,true); + } + } $result['rows'][$n] = $row; } }