From f099800b624e1ebe2793db52bce2470323b556af Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 14 Oct 2014 16:43:47 +0000 Subject: [PATCH] Prevent empty options being sent when selectbox is in a row. Fixes unwanted numeric options in auto-repeat rows. --- 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 536d7048ae..0e11f30a0d 100644 --- a/etemplate/inc/class.etemplate_widget_menupopup.inc.php +++ b/etemplate/inc/class.etemplate_widget_menupopup.inc.php @@ -224,7 +224,7 @@ class etemplate_widget_menupopup extends etemplate_widget } // Make sure  s, etc. are properly encoded when sent, and not double-encoded - $options = (self::$request->sel_options[$form_name] ? $form_name : $this->id); + $options = (isset(self::$request->sel_options[$form_name]) ? $form_name : $this->id); if(is_array(self::$request->sel_options[$options])) { // Turn on search, if there's a lot of rows (unless explicitly set)