aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/pagination_helper.rb
diff options
context:
space:
mode:
authorjpl2017-03-17 18:23:12 +0100
committerjpl2017-03-17 18:23:12 +0100
commit4be6c9ae2304e47e9f6b2ab5bbc3bd9c3e360b74 (patch)
tree4b31f4ce38da6c189152c09ab8bc2953a0d7e99c /app/helpers/pagination_helper.rb
parent82f8b8a0cf518946d94573831676237411e1ece9 (diff)
downloadchouette-core-4be6c9ae2304e47e9f6b2ab5bbc3bd9c3e360b74.tar.bz2
Refs #2858: fix sorting on table for <attr>.count (reflines#show)
Diffstat (limited to 'app/helpers/pagination_helper.rb')
-rw-r--r--app/helpers/pagination_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb
index 350d796ea..02eec39dc 100644
--- a/app/helpers/pagination_helper.rb
+++ b/app/helpers/pagination_helper.rb
@@ -20,8 +20,8 @@ module PaginationHelper
end
def new_pagination collection, cls = nil
- k = collection.first.class
- pinfos = page_entries_info collection, model: k, html: false
+ # k = collection.first.class unless collection.empty?
+ pinfos = page_entries_info collection, html: false
if collection.total_pages > 1
links = content_tag :div, '', class: 'page_links' do