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:
parent
84237cae6f
commit
11b822eaf3
2 changed files with 10 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue