dont send [''], make that [];update data to support revert without reload

This commit is contained in:
j 2016-01-13 16:13:05 +05:30
parent 0afae95e8b
commit e2b96b6ba2

View file

@ -732,8 +732,9 @@ oml.ui.infoView = function(externalData, isMixed) {
edit[key] = key == 'author'
? splitValue(value || [], 'author')
: Ox.contains(arrayKeys, key)
? (value || '').split(separator)
? value ? value.split(separator) : []
: value;
data[key] = edit[key];
oml.api.edit(edit, function(result) {
if (!isMultiple || ui.updateResults) {
Ox.Request.clearCache();