From 3915c1c331d0b9a5f254967be7787918e6663022 Mon Sep 17 00:00:00 2001 From: Slava Shishkin Date: Thu, 27 Apr 2023 16:23:42 +0300 Subject: [PATCH] Bug 33590: Fix DOM id name for tabs after WRAPPER code added to modborrowers.tt The submitted numbers were not processed by the search query. To test: 1. Go to /cgi-bin/koha/circ/modborrowers.pl 2. On the relevant tab, enter the card number or the borrower number in the text area, or upload a text file with a relevant list of numbers. 3. Click "Continue" and verify that a message appears stating "No patron card numbers or borrowernumbers given". 4. Apply the patch. 5. Restart the page and repeat steps 2 and 3. Make sure you receive the correct response -- a list of borrowers or a message indicating that the specified numbers were not found. Signed-off-by: Caroline Cyr La Rose Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 fdd054868a..7a1a4139be 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -482,9 +482,9 @@ $("#patron_batchmod_form").on("submit", function(){ /* Reset form fields on inactive tabs */ var tab = $(this).find('ul.nav-tabs li.active a').attr('href'); - if ( tab == '#usecardnumber' ) { + if ( tab == '#usecardnumber_panel' ) { $("#borrowernumberuploadfile, #patron_list_id, #borrowernumberlist").val(""); - } else if ( tab == '#useborrowernumber' ) { + } else if ( tab == '#useborrowernumber_panel' ) { $("#cardnumberuploadfile, #cardnumberlist, #patron_list_id").val(""); } else { // uselist $("#borrowernumberuploadfile, #cardnumberuploadfile, #borrowernumberlist, #cardnumberlist").val(""); -- 2.39.5