Bugzilla – Attachment 170813 Details for
Bug 37755
Change in Bootstrap5 has broken batch patron modification
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37755: Fixed JavaScript for modification tabs
Bug-37755-Fixed-JavaScript-for-modification-tabs.patch (text/plain), 3.80 KB, created by
Jonathan Druart
on 2024-08-28 13:01:53 UTC
(
hide
)
Description:
Bug 37755: Fixed JavaScript for modification tabs
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-08-28 13:01:53 UTC
Size:
3.80 KB
patch
obsolete
>From c894604a6b41dc0ee14800bc70841b8d1230ecec Mon Sep 17 00:00:00 2001 >From: Jake Deery <jake.deery@ptfs-europe.com> >Date: Wed, 28 Aug 2024 12:02:50 +0100 >Subject: [PATCH] Bug 37755: Fixed JavaScript for modification tabs > >This patch addresses a new bug which prevents correct submission on mod >borrowers and mod records (mod + delete). The bug appears to have been >introduced since the recent Bootstrap5 switch, and shouldn't be surfacing >anywhere else in the system > >Note that the test plan focuses on tools/modborrowers.pl. The error also >appears to exist on tools/batch_record_modification.pl and >tools/batch_delete_records.pl, but is a lot harder to reproduce. > >Please see https://chat.koha-community.org/koha-community/pl/fmnzzgy5cpghtpdc9a9ow75scr >and follow-up comments for details on reproducing this. > >To test: >a) go to tools/modborrowers.pl and try to enter valid cardnumbers or > borrowernumbers > 1) notice how you cannot proceed >b) APPLY PATCH >c) repeat steps a > 1) notice how you can now proceed >d) SIGN OFF > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt | 2 +- > .../prog/en/modules/tools/batch_record_modification.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt >index 1bc6c8c1660..b75fe5d4d5d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt >@@ -379,7 +379,7 @@ > }); > > $("#record_ids_selection").on("submit", function(e){ >- var tab = $(this).find('#batch_del_form:active:first a').attr('href'); >+ var tab = $(this).find('#batch_del_form li a.active:first').attr('href'); > if ( tab == '#uploadfile_tab' ) { > $("#shelf_number").empty(''); > $("#recordnumber_list").val(''); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >index 6461fac1da4..62ec796fd1a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >@@ -369,7 +369,7 @@ > }); > > $("#record_ids_selection").on("submit", function(e) { >- var tab = $(this).find('#batch_mod_form li.active:first a').attr('href'); >+ var tab = $(this).find('#batch_mod_form li a.active:first').attr('href'); > if (tab == '#uploadfile_tab_panel') { > $("#recordnumber_list, #shelf_number").val(''); > } else if (tab == '#shelves_tab_panel') { >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 08ca06942d5..d26cdb8d8ed 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >@@ -512,7 +512,7 @@ > }); > $("#patron_batchmod_form").on("submit", function(){ > /* Reset form fields on inactive tabs */ >- var tab = $(this).find('ul.nav-tabs li.active a').attr('href'); >+ var tab = $(this).find('ul.nav-tabs li a.active').attr('href'); > if ( tab == '#usecardnumber_panel' ) { > $("#borrowernumberuploadfile, #patron_list_id, #borrowernumberlist").val(""); > } else if ( tab == '#useborrowernumber_panel' ) { >-- >2.34.1
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 37755
:
170802
|
170803
|
170806
| 170813 |
170814