From f3088a211af3beeda7abd2b403dc769828724ae4 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Mon, 14 Apr 2008 08:33:08 -0400 Subject: [PATCH] Correcting code to pass total number of hits returned to the template. Signed-off-by: Joshua Ferraro --- labels/label-item-search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labels/label-item-search.pl b/labels/label-item-search.pl index 3da74f56ba..4bd4a5a5dd 100755 --- a/labels/label-item-search.pl +++ b/labels/label-item-search.pl @@ -182,7 +182,7 @@ if ( $show_results ) { startfromnext => $startfrom + min( $resultsperpage, scalar @results ), startfromprev => max( $startfrom - $resultsperpage, 0 ), searchdata => \@field_data, - total => $total, + total => (scalar @results), from => $startfrom + 1, to => $startfrom + min( $resultsperpage, scalar @results ), numbers => \@numbers, -- 2.20.1