Bugzilla – Attachment 166403 Details for
Bug 36534
Batch operations when using limit in report
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36534: Batch operations when using limit in report
Bug-36534-Batch-operations-when-using-limit-in-rep.patch (text/plain), 2.56 KB, created by
Nick Clemens (kidclamp)
on 2024-05-08 12:37:11 UTC
(
hide
)
Description:
Bug 36534: Batch operations when using limit in report
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-05-08 12:37:11 UTC
Size:
2.56 KB
patch
obsolete
>From 045aa3abcbc55fc68e20c43a0770ef123478ccf5 Mon Sep 17 00:00:00 2001 >From: Katariina Pohto <trainee@koha-suomi.fi> >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 <oleonard@myacpl.org> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../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 3b0da777a80..50f7a65a4ff 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 ) %] > <div class="btn-group"> > <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="batch_mod_menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> >- Batch operations with [% IF unlimited_total >= limit %][% limit | html %][% ELSE %][% unlimited_total | html %][% END %] visible records >+ Batch operations with [% IF unlimited_total >= limit %][% results.size | html %][% ELSE %][% unlimited_total | html %][% END %] visible records > <span class="caret"></span> > </button> > <ul class="dropdown-menu" aria-labelledby="batch_mod_menu"> >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36534
:
166068
|
166154
| 166403