From b2f402dc049c83717a9f154efb45efa187767bd3 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 28 Mar 2016 13:27:21 -0400 Subject: [PATCH] FIX: Incorrect badge counts when restricted to a username --- app/assets/javascripts/discourse/templates/badges/index.hbs | 2 +- app/assets/javascripts/discourse/templates/badges/show.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/badges/index.hbs b/app/assets/javascripts/discourse/templates/badges/index.hbs index f82722c2d6f..0ad5dc88dd8 100644 --- a/app/assets/javascripts/discourse/templates/badges/index.hbs +++ b/app/assets/javascripts/discourse/templates/badges/index.hbs @@ -9,7 +9,7 @@ {{#each bg.badges as |b|}} - {{#link-to 'badges.show' b.id b.slug}} + {{#link-to 'badges.show' b.id b.slug (query-params username=null)}} {{badge-card badge=b}} {{/link-to}} {{/each}} diff --git a/app/assets/javascripts/discourse/templates/badges/show.hbs b/app/assets/javascripts/discourse/templates/badges/show.hbs index 3e6630ed91f..9a0bd1e0598 100644 --- a/app/assets/javascripts/discourse/templates/badges/show.hbs +++ b/app/assets/javascripts/discourse/templates/badges/show.hbs @@ -6,7 +6,7 @@
- {{badge-card badge=model size="large"}} + {{badge-card badge=model size="large" count=userBadges.grant_count}}