Bugzilla – Attachment 158793 Details for
Bug 35251
Issue table does not recalculate number of checkouts after a check in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35251: Update checkout count when refreshing issue table
Bug-35251-Update-checkout-count-when-refreshing-is.patch (text/plain), 2.18 KB, created by
Marcel de Rooy
on 2023-11-10 09:02:18 UTC
(
hide
)
Description:
Bug 35251: Update checkout count when refreshing issue table
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-11-10 09:02:18 UTC
Size:
2.18 KB
patch
obsolete
>From a752551f4a27ce8a158041ce499b9eedf1afb801 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 3 Nov 2023 16:51:11 +0000 >Subject: [PATCH] Bug 35251: Update checkout count when refreshing issue table >Content-Type: text/plain; charset=utf-8 > >1. Have some checkouts >2. Go to the issue-table and select some of those checkouts and check them in. >3. Look at the tab, Checkouts(X) >4. This is not updated and now shows an incorrect number of checkouts. >4. APPLY PATCH, clear browser cache/ >5. Try again, now when the table reloads the 'Checkouts(X)' tab should be correctly updated. > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc >index ba4fd3ee26..8b4659064b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc >@@ -4,7 +4,7 @@ > [% WRAPPER tabs id= "finesholdsissues" %] > [% WRAPPER tabs_nav %] > [% WRAPPER tab_item tabname= "checkouts" bt_active= 1 %] >- <span>Checkouts ([% issuecount || 0 | html %])</span> >+ <span>Checkouts (<span class="checkout_count">[% issuecount || 0 | html %]</span>)</span> > [% END %] > > [% IF relatives_issues_count %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >index 7fb8e89d73..b9db3f384f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >@@ -316,6 +316,8 @@ $(document).ready(function() { > $('.checkin[value="'+checked+'"]').prop('checked' , true ); > }); > } >+ var checkout_count = table.page.info().recordsTotal; >+ $('.checkout_count').text(checkout_count); > }); > } > >-- >2.30.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 35251
:
158355
|
158367
|
158474
| 158793