diff --git a/etemplate/js/et2_core_widget.js b/etemplate/js/et2_core_widget.js index 2eea8090cd..df11e8424d 100644 --- a/etemplate/js/et2_core_widget.js +++ b/etemplate/js/et2_core_widget.js @@ -209,7 +209,7 @@ var et2_widget = ClassWithAttributes.extend( if(this.id) { - this.id = this.id.replace(/\[/g,'[').replace(/]/g,']'); + //this.id = this.id.replace(/\[/g,'[').replace(/]/g,']'); } // Add all attributes hidden in the content arrays to the attributes diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index 635ec7b773..ec4ffe4b3c 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -427,7 +427,7 @@ var et2_selectbox = et2_inputWidget.extend( }, set_value: function(_value) { - if(typeof _value == "string" && this.options.multiple && _value.match(/^[,0-9A-Za-z]+$/) !== null) + if(typeof _value == "string" && this.options.multiple && _value.match(/^[,0-9A-Za-z/-_]+$/) !== null) { _value = _value.split(','); }