From 291b4c074bded0533c6c70e0b74bc133fa572b60 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 Signed-off-by: Aleisha Amohia Signed-off-by: Katrin Fischer (cherry picked from commit 9cae91c7da4c429350584dd394282be9d01e79da) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt | 1 + 1 file changed, 1 insertion(+) 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 efd48a74d9..07cf2a9c5a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -355,6 +355,7 @@ [% # /.row %] [% # /.main.container-fluid %] + [% INCLUDE 'intranet-bottom.inc' popup_window=1 %] [% INCLUDE js_includes.inc %] [% INCLUDE 'datatables.inc' %] [% Asset.js("js/cart.js") | $raw %]