Skip to content

Commit

Permalink
(js) Fix creation of note on existing card
Browse files Browse the repository at this point in the history
Fixes #3886
  • Loading branch information
cgx committed Nov 9, 2016
1 parent c596bac commit fecbd49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Contacts/Card.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
this.c_component = 'vlist';
if (data.notes && data.notes.length)
this.notes = _.map(data.notes, function(note) { return { 'value': note }; });
else if (!this.notes)
else if (!this.notes || !this.notes.length)
this.notes = [ { value: '' } ];
// Instanciate Card objects for list members
angular.forEach(this.refs, function(o, i) {
Expand Down

0 comments on commit fecbd49

Please sign in to comment.