Commit a756ab107dccc557ccaf9dc50f9dd57866b8db34
1 parent
17a1f4df
Exists in
master
and in
1 other branch
Fix condition on badge#show
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
views/gamification_plugin_badges/show.html.erb
| ... | ... | @@ -24,9 +24,10 @@ |
| 24 | 24 | |
| 25 | 25 | <p> |
| 26 | 26 | <b>Threshold:</b> |
| 27 | - <% @gamification_plugin_badge.custom_fields.is_a? Hash %> | |
| 28 | - <% @gamification_plugin_badge.custom_fields.keys.each do |key| %> | |
| 29 | - <div><%= _(key) + ': ' + @gamification_plugin_badge.custom_fields[key].fetch("threshold", "") %></div> | |
| 27 | + <% if @gamification_plugin_badge.custom_fields.is_a? Hash %> | |
| 28 | + <% @gamification_plugin_badge.custom_fields.keys.each do |key| %> | |
| 29 | + <div><%= _(key) + ': ' + @gamification_plugin_badge.custom_fields[key].fetch("threshold", "") %></div> | |
| 30 | + <% end %> | |
| 30 | 31 | <% end %> |
| 31 | 32 | </p> |
| 32 | 33 | ... | ... |