1
0
mirror of https://github.com/EGroupware/egroupware.git synced 2025-07-11 11:55:32 +02:00

Fix multiselect/taglist values not properly set if value is an object instead of an array

This commit is contained in:
Nathan Gray
2014-12-08 18:16:22 +00:00
parent 3d7030b43f
commit d7be8fe202

@ -449,7 +449,8 @@ var et2_selectbox = et2_inputWidget.extend(
} }
if(this.input !== null && (this.options.tags || this.options.search)) 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.input.trigger("liszt:updated");
this.value = this.input.val(); this.value = this.input.val();
return; return;