Bugzilla – Attachment 182746 Details for
Bug 38974
Error when submitting patron update from the OPAC Can't call method "dateofbirthrequired" on an undefined value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38974: Fix error in OPAC patron update
Bug-38974-Fix-error-in-OPAC-patron-update.patch (text/plain), 1.23 KB, created by
David Nind
on 2025-05-22 22:49:32 UTC
(
hide
)
Description:
Bug 38974: Fix error in OPAC patron update
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-05-22 22:49:32 UTC
Size:
1.23 KB
patch
obsolete
>From c8f4f3e1cb4f27b9ee73be5bce9f0923ec4af2a7 Mon Sep 17 00:00:00 2001 >From: Andreas Jonsson <andreas.jonsson@kreablo.se> >Date: Thu, 22 May 2025 11:00:35 +0200 >Subject: [PATCH] Bug 38974: Fix error in OPAC patron update > >Test plan: > >1) Make sure Patron category is checked in the system preference PatronSelfModificationBorrowerUnwantedField >2) Log in to the opac >3) Go to "Personal details" >4) Select any value for "Date of birth" >5) Click save >6) This must not yield error 500. (But may be a successful save or a validation error). > >Signed-off-by: David Nind <david@davidnind.com> >--- > opac/opac-memberentry.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 65e6f3db16..14ec05e753 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -306,6 +306,7 @@ if ( $op eq 'cud-create' ) { > > my %borrower = ParseCgiForBorrower($cgi); > $borrower{borrowernumber} = $borrowernumber; >+ $borrower{categorycode} = $borrower->{categorycode}; > > my @empty_mandatory_fields = grep { $_ ne 'password' } # password is not required when editing personal details > ( CheckMandatoryFields( \%borrower, $op ), CheckMandatoryAttributes( \%borrower, $attributes ) ); >-- >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 38974
:
182722
|
182746
|
183053