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> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commitc699f05970) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitffddfb86aa) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
9c0a8407d5
commit
2d2cff6fc6
|
|
@ -1082,9 +1082,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') %]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue