From bbf1cf504e87a2e7c6628a7c78dffaa4d9e614bd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 4 May 2026 09:41:42 +0200 Subject: [PATCH] Bug 42177: bundlesEnabled fix Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index f04b2c603c..1a23c6e1ad 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1772,7 +1772,6 @@ Koha.addPrefs({ AlwaysShowHoldingsTableFilters: [% Koha.Preference('AlwaysShowHoldingsTableFilters') ? 1 : 0 | html %], - bundlesEnabled: [% bundlesEnabled ? 1 : 0 | html %], BundleLostValue: "[% Koha.Preference('BundleLostValue') | html %]", }); @@ -1791,7 +1790,8 @@ build_items_table(tab_id, false, {}, build_items_table_drawncallback); } - if (Koha.prefs.bundlesEnabled) { + // bundlesEnabled is defined in catalogue_detail.inc + if (bundlesEnabled) { // Add event listener for opening and closing bundle details $("#" + tab_id + "_table tbody").on("click", "button.details-control", function () { var button = $(this);