mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
PHRAS-1104 - edit record: fix empty value in multivalued fields
This commit is contained in:
@@ -197,6 +197,9 @@
|
||||
if (window.console) {
|
||||
console.log('adding new multi value ', value);
|
||||
}
|
||||
if( value === '') {
|
||||
return;
|
||||
}
|
||||
this.datas.push(new recordFieldValue(null, value, VocabularyId));
|
||||
this.options.dirty = true;
|
||||
}
|
||||
@@ -211,6 +214,7 @@
|
||||
if (window.console) {
|
||||
console.log('Merging value ', value);
|
||||
}
|
||||
|
||||
this.datas[0].setValue(this.datas[0].getValue() + ' ' + value, VocabularyId);
|
||||
|
||||
this.options.dirty = true;
|
||||
|
Reference in New Issue
Block a user