Bugzilla – Attachment 191575 Details for
Bug 41569
Tidy kohaTable block - clubs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41569: (follow-up) Prevent variable redeclaration warnings
Bug-41569-follow-up-Prevent-variable-redeclaration.patch (text/plain), 2.03 KB, created by
Owen Leonard
on 2026-01-16 15:51:15 UTC
(
hide
)
Description:
Bug 41569: (follow-up) Prevent variable redeclaration warnings
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-16 15:51:15 UTC
Size:
2.03 KB
patch
obsolete
>From 65a006f7aafc20687d170271fd92d8eb00849ade Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 16 Jan 2026 10:48:43 -0500 >Subject: [PATCH] Bug 41569: (follow-up) Prevent variable redeclaration > warnings > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >index b2d812dc646..de3783fce15 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >@@ -59,7 +59,7 @@ > </table> > [% END %] > <script> >- const borrowernumber = "[% borrowernumber | html %]"; >+ var clubs_borrowernumber = "[% borrowernumber | html %]"; > </script> > <script> > var clubs_dt_params = { >@@ -72,7 +72,7 @@ > <script> > function loadEnrollmentForm(id, enrollent_id = 0) { > $("body").css("cursor", "progress"); >- $("#clubs_panel").load('/cgi-bin/koha/clubs/patron-enroll.pl?borrowernumber=" + borrowernumber + " &id=' + id + "&enrollent_id=" + enrollent_id, function () { >+ $("#clubs_panel").load(`/cgi-bin/koha/clubs/patron-enroll.pl?borrowernumber=${clubs_borrowernumber}&id=${id}&enrollent_id=${enrollent_id}`, function () { > $("body").css("cursor", "default"); > }); > >@@ -85,7 +85,7 @@ > client.enrollments.cancel(id).then( > success => { > if (success.success) { >- $("#clubs_panel").load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=" + borrowernumber + "', function () { >+ $("#clubs_panel").load(`/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=${clubs_borrowernumber}`, function () { > $("body").css("cursor", "default"); > }); > } else { >-- >2.39.5
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 41569
:
191124
|
191125
|
191126
|
191572
|
191573
|
191574
| 191575