From 915ecf8bdd93aef158a5cbcd68d203967d83fe14 Mon Sep 17 00:00:00 2001
From: Nick Clemens <nick@bywatersolutions.com>
Date: Fri, 28 Apr 2023 15:56:54 +0000
Subject: [PATCH] Bug 33637: Update tab ids for batch modification form

This patch adjusts the ids in the submit function

To test:
1 - Browse to tools -> Batch patron modification
2 - Enter cardnumbers and submit
3 - No patrons
4 - Enter borrowernumbers and submit
5 - No patrons
6 - Apply patch
7 - Repeat
8 - Success, patrons are listed
---
 .../intranet-tmpl/prog/en/modules/tools/modborrowers.tt     | 6 +++---
 1 file changed, 3 insertions(+), 3 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..1d7e80e6c6 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
@@ -482,11 +482,11 @@
             $("#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
+                } else { // uselist_panel
                     $("#borrowernumberuploadfile, #cardnumberuploadfile, #borrowernumberlist, #cardnumberlist").val("");
                 }
             });
-- 
2.30.2