From d7be8fe20244530c02a23f22e91abd9d523d3bb6 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 8 Dec 2014 18:16:22 +0000 Subject: [PATCH] Fix multiselect/taglist values not properly set if value is an object instead of an array --- etemplate/js/et2_widget_selectbox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index 1869cbb7a8..b676dda0bc 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -449,7 +449,8 @@ var et2_selectbox = et2_inputWidget.extend( } if(this.input !== null && (this.options.tags || this.options.search)) { - this.input.val(_value); + // Value must be a real Array, not an object + this.input.val(jQuery.map(_value,function(value,index){return [value];})); this.input.trigger("liszt:updated"); this.value = this.input.val(); return;