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