From 02db5d0357c9cf03f53545b080db58b331d63f3d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 20 May 2014 19:25:48 +0000 Subject: [PATCH] Don't send blank row option for read-only selectboxes. It's not needed, and can conflict with non-readonly (nm filter vs row) --- 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 b5e179c737..ebb9e22087 100644 --- a/etemplate/inc/class.etemplate_widget_menupopup.inc.php +++ b/etemplate/inc/class.etemplate_widget_menupopup.inc.php @@ -663,7 +663,7 @@ class etemplate_widget_menupopup extends etemplate_widget } break; } - if ($rows > 1) + if ($rows > 1 || $readonly) { unset($options['']); }