From d81b009ab0634e1ae33a1bb5cf20cad538bb361f Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 16 Jul 2023 14:11:19 +0000 Subject: [PATCH] Bug 34181: Fix jQuery selector to make delete checkboxes reappear Bug 32257 changed the page structure slightly to fix a display issue with the labels. This resulted in a broken selector in the function for displaying the checkboxes for deleting/emptying a certain patron field. To test: * Go to Tools > Batch patron modifications * Enter some cardnumbers or borrowernumbers * On the batch patron edit form, verify that the checkboxes behind each input field are missing * Apply patch * Verify the checkboxes reappeared * Verify that for mandatory fields the checkbox is locked * Make some batch edits and verify the checkboxes work as intended Signed-off-by: Lisette Scheer Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index 233f3d4ae4..fc692b14c7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -510,7 +510,7 @@ var selected_option = $(select_attr).find("option:selected"); var type = $(selected_option).attr('data-type'); var category = $(selected_option).attr('data-category'); - var li_node = $(select_attr).parent().parent(); + var li_node = $(select_attr).parent(); var span = $(li_node).find('span.patron_attributes_value'); var information_category_node = $(li_node).find('span.information_category'); information_category_node.html(""); -- 2.39.5