Bugzilla – Attachment 109247 Details for
Bug 25584
When a 'return claim' is added, the button disappears, but the claim date doesn't show up
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25584: Refresh checkouts table when a return claim is added
Bug-25584-Refresh-checkouts-table-when-a-return-cl.patch (text/plain), 2.04 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-08-27 18:11:27 UTC
(
hide
)
Description:
Bug 25584: Refresh checkouts table when a return claim is added
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-08-27 18:11:27 UTC
Size:
2.04 KB
patch
obsolete
>From b06a5898b248b345253a904a4aee196511d74b0c Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 27 Aug 2020 14:57:45 -0300 >Subject: [PATCH] Bug 25584: Refresh checkouts table when a return claim is > added > >This patch triggers a checkouts table refresh when a return claim is >added. I also noticed the same when a return claim is deleted so it is >now also refreshed. > >To test: >1. Set the ClaimReturnedLostValue to some valid value (2) >2. Check something out for a patron, and choose to display all checkouts >=> SUCCES: There's the checkouts table, showing the checkout >3. Click on the 'Claim returned' button and confirm >=> SUCCESS: There's no 'Claim returned' button anymore >=> ERROR: The checkout row doesn't display anything about the claim >4. Go to the 'Claims' tab, delete resolve and delete the claim >5. Go to the Checkouts tab >=> ERROR: It doesn't reflect the changes either >6. Apply this patch and start over >=> SUCCESS: Once the claim returned is added, the checkouts table is >refreshed and the information updated >=> SUCCESS: On the Claims tab, if you delete the claim and go to the >Checkouts tab, you are presented the button again. >7. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >index 31589a396d..d764c579ba 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >@@ -873,6 +873,7 @@ $(document).ready(function() { > $(id).replaceWith( content ); > > refreshReturnClaimsTable(); >+ issuesTable.api().ajax.reload(); > }, "json") > > }); >@@ -1073,6 +1074,7 @@ $(document).ready(function() { > type: 'DELETE', > success: function( data ) { > refreshReturnClaimsTable(); >+ issuesTable.api().ajax.reload(); > } > }); > } >-- >2.28.0
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 25584
:
109247
|
109248
|
109352
|
109353
|
109379
|
109380