https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40499

            Bug ID: 40499
           Summary: Birthdate on Patron Self Modification Form Causes an
                    Error When Form is Submitted
 Change sponsored?: ---
           Product: Koha
           Version: 24.11
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

This seems to have been introduced with the .05 or .06 point upgrade. Patrons
with a birthdate in their record are not able to successfully submit a request
to modify their personal details of dateofbirth is a field that's allowed on
the Personal Details page.

See the following message on every failed form submission in the
plack-error.log:

'Can't call method "dateofbirthrequired" on an undefined value at
/usr/share/koha/opac/cgi-bin/opac/opac-memberentry.pl line 539.'


To recreate:
1. Set OPACPatronDetails to Allow
2. Make sure dateofbirth is not included in
PatronSelfModificationBorrowerUnwantedField or in 
PatronSelfModificationMandatoryField 
3. Log in as a patron with no birthdate in their record, change a detail on the
Personal Details page, submit, get a confirmation message.
4. Log in as a patron with a birthdate set, change a detail on the Personal
Details page, submit, receive a 500 error.
5. If the birthdate is removed (either via the staff client or by just clearing
it on the patron form) the request is able to go through successfully 

Workaround:
Set dateofbirth in PatronSelfModificationBorrowerUnwantedField so that it is no
longer an option on the Personal Details page

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to