From 326b6c9ff0dd6e28619d5cda684b3eaa8d49aa23 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 11 Jul 2024 14:41:54 +0200 Subject: [PATCH] Bug 37309: Fix behaviour when SeparateHoldings is in use --- .../html_helpers/tables/items/catalogue_detail.inc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 d0cfb22f038..3d6cd1a71f6 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 @@ -57,7 +57,7 @@ | Actions: [% IF CAN_user_tools_items_batchdel %] -
+ [% INCLUDE 'csrf-token.inc' %] @@ -67,7 +67,7 @@
[% END %] [% IF CAN_user_tools_items_batchmod %] -
+ [% INCLUDE 'csrf-token.inc' %] @@ -95,10 +95,10 @@ let items_selection = {}; - function _itemSelectionBuildLink(tab_id, form) { - - var itemnumbers = items_selection[tab_id]; + function _itemSelectionBuildLink(tab_id, link_class) { + let itemnumbers = items_selection[tab_id]; + let form = $("#" + tab_id).find(link_class); $(form).find("input[name='itemnumber']").remove(); $(itemnumbers).each(function() { @@ -107,10 +107,10 @@ return !!itemnumbers.length } function itemSelectionBuildDeleteLink(tab_id) { - return _itemSelectionBuildLink(tab_id, $('#itemselection_action_delete_form')); + return _itemSelectionBuildLink(tab_id, '.itemselection_action_delete_form'); } function itemSelectionBuildModifyLink(tab_id) { - return _itemSelectionBuildLink(tab_id, $('#itemselection_action_modify_form')); + return _itemSelectionBuildLink(tab_id, '.itemselection_action_modify_form'); } function itemSelectionBuildActionLinks(tab_id) { -- 2.34.1