From ab23ecb7f5999e570e4a72ed7ba82f4b4979d048 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 19 Feb 2016 09:36:41 +0000 Subject: [PATCH] fix infolog wont save, if cc was an empty string, seems taglist needs empty now as empty array, not null or "" --- etemplate/js/et2_widget_taglist.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_taglist.js b/etemplate/js/et2_widget_taglist.js index 29520b6ebb..daf6c6bd27 100644 --- a/etemplate/js/et2_widget_taglist.js +++ b/etemplate/js/et2_widget_taglist.js @@ -381,7 +381,7 @@ var et2_taglist = et2_selectbox.extend( set_select_options: function(_options) { this.options.select_options = this._options2data(_options); - + if(this.taglist == null) return; var widget = this; this.taglist.setData(function(query) { @@ -404,9 +404,10 @@ var et2_taglist = et2_selectbox.extend( */ set_value: function(value) { + if (value === '' || value === null) value = []; var values = jQuery.isArray(value) ? jQuery.extend([],value) : [value]; this.options.value = values; - + if(this.taglist == null) return; if(!value)