Bugzilla – Attachment 158355 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), 1.98 KB, created by
Lucas Gass (lukeg)
on 2023-11-03 16:52:57 UTC
(
hide
)
Description:
Bug 35251: Update checkout count when refreshing issue table
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2023-11-03 16:52:57 UTC
Size:
1.98 KB
patch
obsolete
>From b0920a6bf4d760d02449c1e81c9fa7e437269bb3 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 > >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. >--- > 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 ba4fd3ee268..8b4659064b1 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 7fb8e89d739..b9db3f384f5 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