mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Fix multiselect/taglist values not properly set if value is an object instead of an array
- Fix to handle strings and nulls too
This commit is contained in:
parent
2c71852545
commit
6eb5fead04
@ -450,7 +450,7 @@ var et2_selectbox = et2_inputWidget.extend(
|
||||
if(this.input !== null && (this.options.tags || this.options.search))
|
||||
{
|
||||
// Value must be a real Array, not an object
|
||||
this.input.val(jQuery.map(_value,function(value,index){return [value];}));
|
||||
this.input.val(typeof _value == 'object' && _value != null ? jQuery.map(_value,function(value,index){return [value];}) : _value);
|
||||
this.input.trigger("liszt:updated");
|
||||
this.value = this.input.val();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user