Commit a15263ff5e3fbc01c18ee8dff9dd9edc5da9cce2
1 parent
86405d39
Exists in
master
and in
1 other branch
Fix badge notification
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/gamification_plugin.rb
... | ... | @@ -36,7 +36,7 @@ class GamificationPlugin < Noosfero::Plugin |
36 | 36 | def body_ending |
37 | 37 | proc do |
38 | 38 | if current_person.present? && response.status == 200 |
39 | - badges = current_person.badges.notification_pending | |
39 | + badges = current_person.badges.notification_pending.all | |
40 | 40 | current_person.sash.notify_all_badges_from_user |
41 | 41 | render :file => 'gamification/display_notifications', :locals => {:badges => badges} |
42 | 42 | else | ... | ... |