Fix bug.
This commit is contained in:
parent
7724fd5769
commit
742adb814d
|
@ -33,7 +33,7 @@
|
|||
<% result.result.each do |key,value| %>
|
||||
<% @key_len %>
|
||||
<% if key != "locale" %>
|
||||
<% if result.values[key][I18n.locale.to_s].length == 0 %>
|
||||
<% if (result.values[key][I18n.locale.to_s].length == 0 rescue true) %>
|
||||
<td><%= value.to_s %></td>
|
||||
<% else %>
|
||||
<td><% v = result.values[key][I18n.locale.to_s][value.to_i-1] rescue nil %><%= v.nil? ? value : v %></td>
|
||||
|
|
Loading…
Reference in New Issue