Fix bug.
This commit is contained in:
parent
e5205fab5f
commit
92345e9ac3
|
@ -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