(js) Fix creation of note on existing card

Fixes #3886
This commit is contained in:
Francis Lachapelle 2016-11-09 10:37:28 -05:00
parent c596bacccb
commit fecbd49541

View file

@ -156,7 +156,7 @@
this.c_component = 'vlist'; this.c_component = 'vlist';
if (data.notes && data.notes.length) if (data.notes && data.notes.length)
this.notes = _.map(data.notes, function(note) { return { 'value': note }; }); this.notes = _.map(data.notes, function(note) { return { 'value': note }; });
else if (!this.notes) else if (!this.notes || !this.notes.length)
this.notes = [ { value: '' } ]; this.notes = [ { value: '' } ];
// Instanciate Card objects for list members // Instanciate Card objects for list members
angular.forEach(this.refs, function(o, i) { angular.forEach(this.refs, function(o, i) {