From 59693d38a178f8b3b649270ceffe3f15d80e34e7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 26 Oct 2016 13:09:01 +0200 Subject: [PATCH] Bug 17500: Display correct total values --- C4/Utils/DataTables/Members.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Utils/DataTables/Members.pm b/C4/Utils/DataTables/Members.pm index 22ef20d..a9f1e84 100644 --- a/C4/Utils/DataTables/Members.pm +++ b/C4/Utils/DataTables/Members.pm @@ -119,8 +119,8 @@ sub search { my $results = $searcher->store->bag->search( %$query, %$paging ); my $patrons = $results->hits; - $iTotalRecords = $results->total; - $iTotalDisplayRecords = $iTotalRecords; # FIXME this is wrong + $iTotalDisplayRecords = $results->total; + $iTotalRecords = $searcher->store->bag->count; # Get some information on patrons foreach my $patron (@$patrons) { -- 2.1.4