From 9dece5786e82db57f5bc1c91499edb8f999f4732 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 22 Dec 2020 14:44:59 +0000 Subject: [PATCH] Bug 27294: Error when deleting claim This patch corrects an error which occurs when deleting a claim from the claims tab on the checkout or patron detail page. To test, apply the patch and clear your browser cache if necessary. - If necessary, Enable claims returned functionality by defining a value in the ClaimReturnedLostValue system preference. - Open for checkout a patron who has items checked out. - From the table of checkouts, click "Claim returned" for one or more items. - Under the "Claims" tab, resolve one or more of the unresolved claims by choosing "Resolve" under the corresponding "Actions" menu. - Open the same "Actions" menu again and choose "Delete." - The claim should be deleted and there should be no error in the browser console. - Under the checkouts tab, the table should have refreshed so that the item which had been marked as "Claimed returned" no longer indicates an outstanding claim. --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index 169c318877..365e2527f5 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -1113,7 +1113,7 @@ $(document).ready(function() { type: 'DELETE', success: function( data ) { refreshReturnClaimsTable(); - issuesTable.api().ajax.reload(); + $("#issues-table").DataTable().api().ajax.reload(); } }); } -- 2.11.0