From 057027d2c8aa0b0aa8ba7436f8c8819bf80a6857 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 3680689..d4b79b6 100644 --- a/C4/Utils/DataTables/Members.pm +++ b/C4/Utils/DataTables/Members.pm @@ -136,8 +136,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