PHRAS-1104 - edit record: fix empty value in multivalued fields

This commit is contained in:
Florian BLOUET
2016-05-31 14:36:39 +02:00
parent a581d9f61b
commit e72cf0e41f

View File

@@ -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;