From e9356afd9f7e8ee16165341b8009282ff9ab3ff3 Mon Sep 17 00:00:00 2001 From: Katariina Pohto Date: Thu, 2 May 2024 14:27:06 +0300 Subject: [PATCH] Bug 36534: Batch operations when using limit in report When report results number exceeds the result per page limit, batch operations link reads "Batch operations with (page limit) records" even if there are more or less shown records (more when using limit in SQL or less in the last page of result). This patch fixes the link text to actual shown records. To test: 1) Create a report of items with a limit of e.g., 26. 2) Run report. 3) See that number of results shown exceeds 20 but the link says "Batch operations with 20 visible records". 4) See that the second page shows 6 results but the link is still for 20 records. 5) Apply patch. 6) Run report again. 7) See that the link texts will show correctly 26 records on the first page and 6 records on the second. Signed-off-by: Owen Leonard Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- .../prog/en/modules/reports/guided_reports_start.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3b0da777a8..50f7a65a4f 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 @@ -1055,7 +1055,7 @@ [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers || batch_borrowernumbers ) %]