diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index f984fa76b3..bbd4463762 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -554,15 +554,18 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM], { if(typeof _value == "object") { this.span.empty(); - for(var i = 0; i < _value.length; i++) - { - var option = this.optionValues[_value[i]]; - if(typeof option === "object") + if(_value) + { + for(var i = 0; i < _value.length; i++) { - option = option.label; + var option = this.optionValues[_value[i]]; + if(typeof option === "object") + { + option = option.label; + } + this.span.append("