Bugzilla – Attachment 150410 Details for
Bug 33638
Batch patron modification is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33638: Fix if statement in modborrowers.tt
Bug-33638-Fix-if-statement-in-modborrowerstt.patch (text/plain), 1.77 KB, created by
PTFS Europe Sandboxes
on 2023-04-28 18:25:15 UTC
(
hide
)
Description:
Bug 33638: Fix if statement in modborrowers.tt
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2023-04-28 18:25:15 UTC
Size:
1.77 KB
patch
obsolete
>From 43dc7bb845ff00a5578d6b34a718542dd453887c Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >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. > >Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33638
:
150409
| 150410