Bug 42177: bundlesEnabled fix

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-05-04 09:41:42 +02:00 committed by Lucas Gass
parent 173f65f70b
commit bbf1cf504e
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 2 additions and 2 deletions

View File

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