mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-01 19:42:48 +00:00
(js) Fix initialization of a new Card's note
This commit is contained in:
@@ -154,9 +154,9 @@
|
||||
});
|
||||
if (this.isgroup)
|
||||
this.c_component = 'vlist';
|
||||
if (this.notes && this.notes.length)
|
||||
this.notes = _.map(this.notes, function(note) { return { 'value': note }; });
|
||||
else
|
||||
if (data.notes && data.notes.length)
|
||||
this.notes = _.map(data.notes, function(note) { return { 'value': note }; });
|
||||
else if (!this.notes)
|
||||
this.notes = [ { value: '' } ];
|
||||
// Instanciate Card objects for list members
|
||||
angular.forEach(this.refs, function(o, i) {
|
||||
|
||||
Reference in New Issue
Block a user