Merge pull request #20995 from owncloud/fix-18734
ensure multiselect always receives an array when setting its value, f…
This commit is contained in:
commit
1dfa93367d
1 changed files with 5 additions and 1 deletions
|
@ -198,9 +198,13 @@ OCA = OCA || {};
|
|||
return;
|
||||
}
|
||||
|
||||
// deal with text area
|
||||
// special cases: deal with text area and multiselect
|
||||
if ($element.is('textarea') && $.isArray(value)) {
|
||||
value = value.join("\n");
|
||||
} else if($element.hasClass(this.multiSelectPluginClass)) {
|
||||
if(!_.isArray(value)) {
|
||||
value = value.split("\n");
|
||||
}
|
||||
}
|
||||
|
||||
if ($element.is('span')) {
|
||||
|
|
Loading…
Reference in a new issue