mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Merge pull request #2736 from cpradio/fix-duplicate-badge-titles
FIX: Duplicate badge titles can still occur
This commit is contained in:
commit
208dd7848d
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ export default Ember.ArrayController.extend({
|
|||
|
||||
selectableUserBadges: function() {
|
||||
var items = this.get('model').filterBy('badge.allow_title', true);
|
||||
items = _.uniq(items, true, function(e) { return e.get('badge.name'); });
|
||||
items = _.uniq(items, false, function(e) { return e.get('badge.name'); });
|
||||
items.unshiftObject(Em.Object.create({
|
||||
badge: Discourse.Badge.create({name: I18n.t('badges.no_title')})
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue