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 <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 3915c1c331)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Slava Shishkin 2023-04-27 16:23:42 +03:00 committed by Martin Renvoize
parent f0765025ff
commit 1b882be3b4
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -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("");