Allow unknown groups

Save groups even if we've never heard of them. Previously
we would fail to save due to a missing 'type' attribute.
This commit is contained in:
lilia 2015-03-19 13:49:09 -07:00
parent 84237cae6f
commit 11b822eaf3
2 changed files with 10 additions and 2 deletions

View file

@ -180,7 +180,11 @@
},
getTitle: function() {
return this.get('name') || this.get('members') || this.id;
if (this.isPrivate()) {
return this.get('name') || this.id;
} else {
return this.get('name') || 'Unknown group';
}
},
getNumber: function() {