Bugzilla – Attachment 135724 Details for
Bug 30746
JS error on 'your personal details' in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30746: Fix JS error on opac-memberentry
Bug-30746-Fix-JS-error-on-opac-memberentry.patch (text/plain), 1.94 KB, created by
Katrin Fischer
on 2022-06-06 11:34:31 UTC
(
hide
)
Description:
Bug 30746: Fix JS error on opac-memberentry
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-06-06 11:34:31 UTC
Size:
1.94 KB
patch
obsolete
>From 3b92df820246a2c92a4490f5cfc71721e4f3f157 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 1 Jun 2022 14:54:34 +0200 >Subject: [PATCH] Bug 30746: Fix JS error on opac-memberentry > >Empty PatronSelfRegistrationBorrowerMandatoryField and PatronSelfRegistrationBorrowerUnwantedField >Go to opac-memberentry.pl >Notice the JS error > Uncaught TypeError: j is undefined >Apply this patch >Go to opac-memberentry.pl >=> no JS error >Fill the pref with some values >Go to opac-memberentry.pl >=> Confirm that the fields you marked as mandatory as flagged accordinly >on the UI > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../bootstrap/en/modules/opac-memberentry.tt | 18 +++++++++++++++--- > 1 file changed, 15 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >index a7c60c48b2..cd146409d4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >@@ -1076,9 +1076,21 @@ > } > }); > >- $("input.required,select.required,textarea.required").rules("add", { >- required: true >- }); >+ if ( $("input.required").length ) { >+ $("input.required").rules("add", { >+ required: true >+ }); >+ } >+ if ( $("select.required").length ) { >+ $("select.required").rules("add", { >+ required: true >+ }); >+ } >+ if ( $("textarea.required").length ) { >+ $("textarea.required").rules("add", { >+ required: true >+ }); >+ } > > [% IF patron.guarantor_relationships && !Koha.Preference('OPACPrivacy') %] > >-- >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 30746
:
135541
|
135549
| 135724