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 <david@davidnind.com>
Signed-off-by: Anni <anni.maki-mantila@turku.fi>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Jonathan Druart 2026-05-18 15:49:20 +02:00 committed by Pedro Amorim
parent d7ff63f20b
commit 34da25f751
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 1 additions and 1 deletions

View File

@ -1850,7 +1850,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 });