From 3ef1d005c19565d43fc53aa6a4973a1c9e7744d8 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 (cherry picked from commit d81b009ab0634e1ae33a1bb5cf20cad538bb361f) Signed-off-by: Fridolin Somers (cherry picked from commit 625d0f812ad1c58750c032e7fdd271eaf2932f8c) Signed-off-by: Pedro Amorim --- 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 6de656dc18..3aa5ee6356 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