diff --git a/etemplate/js/et2_widget_taglist.js b/etemplate/js/et2_widget_taglist.js index deb20d7868..d846160564 100644 --- a/etemplate/js/et2_widget_taglist.js +++ b/etemplate/js/et2_widget_taglist.js @@ -306,8 +306,14 @@ var et2_taglist = et2_selectbox.extend( { // alread in correct format } - else if (this.options.select_options && typeof this.options.select_options[v] == 'undefined') + else if (this.options.select_options && typeof this.options.select_options[v] == 'undefined' || typeof v == 'string') { + // Options should have been provided, but they weren't + // This can happen for ajax source with an existing value + if(this.options.select_options == null) + { + this.options.select_options = {}; + } values[i] = { id: v, label: v