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: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-05-18 15:49:20 +02:00 committed by Lucas Gass
parent 32a6c63872
commit 05840d64af
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

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