Commit a756ab107dccc557ccaf9dc50f9dd57866b8db34

Authored by Hugo Melo
1 parent 17a1f4df

Fix condition on badge#show

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  
... ...