From f8352386cb85a41edf8fd753b40d1ccf2330765b Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 28 Nov 2013 18:12:08 +0000 Subject: [PATCH] Use === to tell the difference between '' and (int)0 keys --- etemplate/js/et2_widget_selectbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index 8d418880d2..c5bcd9dc2f 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -299,7 +299,7 @@ var et2_selectbox = et2_inputWidget.extend( { option.attr("title", _title); } - if(_label == this.options.empty_label || this.options.empty_label == "" && _value == "") + if(_label == this.options.empty_label || this.options.empty_label == "" && _value === "") { // Make sure empty / all option is first option.prependTo(this.input);