From d156f2049293a41a2b08d896cc5d93b4e3c0afc0 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 13 Jun 2012 15:15:31 +0000 Subject: [PATCH] Fix bug where one selectbox's empty label could get added to all --- 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 a8e3c8b03f..7e168fa917 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -452,7 +452,7 @@ var et2_selectbox = et2_inputWidget.extend({ // Re-add empty, it's usually not there if(this.options.empty_label) { - _options[''] = this.options.empty_label; + this._appendOptionElement('', this.options.no_lang ? this.options.empty_label : this.egw().lang(this.options.empty_label)); } // Add the select_options