Prevent empty options being sent when selectbox is in a row.

Fixes unwanted numeric options in auto-repeat rows.
This commit is contained in:
Nathan Gray 2014-10-14 16:43:47 +00:00
parent 6097c39ea5
commit f099800b62

View File

@ -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)