From 79d3e78f3068e5bd8924041a87f7a013850e6dea Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 8 May 2012 17:43:13 +0000 Subject: [PATCH] Set empty value after loading options, if there's an empty/all label --- 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 cb89ec16dd..084c574ec1 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -482,7 +482,7 @@ var et2_selectbox = et2_inputWidget.extend({ } } // Sometimes value gets set before options - if(this.value) this.set_value(this.value); + if(this.value || this.options.empty_label) this.set_value(this.value); }, getValue: function() {