/ip_addresses: temp fix for exception when using group_by param.

Calling next_page here raises an exception when calculating the page
count because it can't handle SQL containing a GROUP BY clause. Swallow
the exception as a temp fix.
This commit is contained in:
evazion
2020-02-04 03:59:10 -06:00
parent 96b565f61d
commit 6b3c541a8a

View File

@@ -5,11 +5,11 @@
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<% if @current_item.try(:prev_page) %>
<% if (@current_item.try(:prev_page) rescue false) %>
<%= tag.link rel: "prev", href: url_for(nav_params_for(@current_item.prev_page)) %>
<% end %>
<% if @current_item.try(:next_page) %>
<% if (@current_item.try(:next_page) rescue false) %>
<%= tag.link rel: "next", href: url_for(nav_params_for(@current_item.next_page)) %>
<% end %>