From a3b3c1641d6a7d8a0b9058d20c801de34f074eae Mon Sep 17 00:00:00 2001 From: David Bourgault Date: Wed, 22 Nov 2017 13:58:21 -0500 Subject: [PATCH] Bug 19681 - Correct result count formatting This simply passes the missing information to the template. Test plan: 0) Apply patch 1) Go to Tools > Label creator > New > Label batch 2) Press 'Add items' 3) Do a search that will return few items 4) The result count will read "Results 1 through X of X" --- labels/label-item-search.pl | 2 ++ 1 file changed, 2 insertions(+) mode change 100755 => 100644 labels/label-item-search.pl diff --git a/labels/label-item-search.pl b/labels/label-item-search.pl old mode 100755 new mode 100644 index 53b7d46..d93c922 --- a/labels/label-item-search.pl +++ b/labels/label-item-search.pl @@ -202,6 +202,8 @@ if ($show_results) { } else { + $from = 1; + $to = $total_hits; $displayprev = 0; $displaynext = 0; } -- 2.7.4