From b9e393324e4814798ec9ddf010d1f91b2451d1b9 Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Thu, 24 Oct 2024 14:57:46 +0300 Subject: [PATCH] Bug 38257: Fix cart pop up functionalities Almost all functionalities in cart pop up were broken due changes made in bug 37033. Also following errors were displayed in browsers console: > Uncaught TypeError: antiClickjack is null > Uncaught TypeError: $(...).dataTable is not a function This happens because when 'intranet-bottom.inc' is loaded after other .inc files in page. To test: 1. Search for items and add one or more search results to your cart. 2. Open cart. 3. Attempt to use one or more functionalities (download, remove item etc.). => Either nothing happens or table is loaded again with no items in table. However items are still displayed in cart when it's opened again. 4. Apply this patch, restart services if needed. 5. Again attempt to download, remove items, print etc. from cart => Everything should now work as expected. Sponsored-by: Koha-Suomi Oy --- koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt index 03e849c20d..ac25ebad17 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -355,10 +355,10 @@ [% # /.row %] [% # /.main.container-fluid %] + [% INCLUDE 'intranet-bottom.inc' popup_window=1 %] [% INCLUDE js_includes.inc %] [% INCLUDE 'datatables.inc' %] [% Asset.js("js/cart.js") | $raw %] - [% INCLUDE 'intranet-bottom.inc' popup_window=1 %] -- 2.34.1