From 724bb96431bfa0d8fe1aebbd3d4b3d8566c49b91 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 13 Oct 2023 10:49:26 +0100 Subject: [PATCH] Bug 33568: Add some missing StaffDetailItemSelection conditionals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Owen Leonard Signed-off-by: Laurence Rault Signed-off-by: Emily Lamancusa Signed-off-by: Tomás Cohen Arazi --- .../includes/html_helpers/tables/items/catalogue_detail.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc index 42dcfe34879..a63dccaedb0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc @@ -261,9 +261,11 @@ [% IF hidden_count %] default_filters.lost_status = "0"; [% END %] + [% IF StaffDetailItemSelection %] if ( !items_selection.hasOwnProperty(tab_id) ){ items_selection[tab_id] = []; } + [% END %] let filters_options = { 2: () => all_item_types, @@ -760,7 +762,9 @@ table.columns(i).visible(false); } }); + [% IF StaffDetailItemSelection %] itemSelectionBuildActionLinks(tab_id); + [% END %] }, [% IF StaffDetailItemSelection %] drawCallback: function(settings){ -- 2.34.1