From 084c82e568986bbd14a43ce9a439d308e620ac7e Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 28 Apr 2023 18:16:48 +0000 Subject: [PATCH] Bug 33638: Fix if statement in modborrowers.tt To test: 1. Get some valid cardnumbers and borrowernumbers 2. Go to Tools > Batch patron modification 3. Try entering either cardnumbers or borrowernumbers. 4. Apply patch 5. Try again, now it should work. 6. Make sure it works for both cardnumbers and borrowernumbers. --- 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.30.2