From 2a868fecc75355a019acedaae02b640b6dd70c35 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 11 Oct 2021 10:57:40 +0000 Subject: [PATCH] Bug 29186: (QA follow-up) Correct the check for showing limit menu The template conditional for showing the limit menu should be changed from: [% IF ( unlimited_total > limit ) %] to: [% IF ( unlimited_total >= limit ) %] ...to avoid hiding the menu when there are exactly 1000 results. I have also changed other parts of the template that used the same check. --- .../prog/en/modules/reports/guided_reports_start.tt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 7bb5a1667f..881862a23a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -902,7 +902,7 @@

Total number of results: [% unlimited_total | html %] - [% IF unlimited_total > limit %] + [% IF unlimited_total >= limit %] ([% limit | html %] shown) [% END %].

@@ -1015,12 +1015,12 @@ - [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) || ( unlimited_total ) > limit %] + [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) || ( unlimited_total >= limit ) %]
[% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %]
[% END # /IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %] - [% IF ( unlimited_total > limit ) %] + [% IF ( unlimited_total >= limit ) %]
- [% END # /IF ( unlimited_total > limit ) %] + [% END # /IF ( unlimited_total >= limit ) %]
- [% END # /IF batch operations || ( unlimited_total > limit ) %] + [% END # /IF batch operations || ( unlimited_total >= limit ) %]
[% pagination_bar | $raw %] -- 2.20.1