From 05840d64afe47af6f66f27d0e91efd53af0121f3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 May 2026 15:49:20 +0200 Subject: [PATCH] Bug 42632: Fix "Manage bundle" after filters are shown/hidden If "Show/Hide filters" link is clicked, the "Manage bundle" buttons do not longer work. Test plan: Edit a record, set leader 7=collection In the holding list click "Manage bundle" Click "Show filters" Click one of the "Manage bundle" button => Without this patch nothing happens => With this patch applied the table displays the nested table with the bundle details Signed-off-by: David Nind Signed-off-by: Anni Signed-off-by: Laura_Escamilla Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 500177487f..ded0d66270 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1796,7 +1796,7 @@ // 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 () { + $(document).on("click", `#${tab_id}_table tbody button.details-control`, function () { var button = $(this); var tr = button.closest("tr"); var dTable = button.closest("table").DataTable({ retrieve: true });