Don't send blank row option for read-only selectboxes. It's not needed, and can conflict with non-readonly (nm filter vs row)

This commit is contained in:
Nathan Gray 2014-05-20 19:25:48 +00:00
parent 9bb8bed02b
commit 02db5d0357

View File

@ -663,7 +663,7 @@ class etemplate_widget_menupopup extends etemplate_widget
} }
break; break;
} }
if ($rows > 1) if ($rows > 1 || $readonly)
{ {
unset($options['']); unset($options['']);
} }