From 42c653518cdcaa37a036f2a41c106ba4d75c0aaf 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=utf8 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 Signed-off-by: Katrin Fischer --- .../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 42dcfe3487..a63dccaedb 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.39.5