Blank Date of Birth (DOB) displays as 1/1/1970
Bug #1583206 reported by
John Yorio
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I have seen this in 2.91 and 2.92
Steps:
1. Self-registration is enabled, "Require dob field on patron registration" is not set, "show dob field on patron registration" is set to to true.
2. Patron registers, but does not complete DOB field.
What happens:
In the staff client, I can see the patron in Pending Patrons and Date of Birth is blank as expected, but when I double-click patron or click Load Patron, the Date of Birth shows "1/1/1970" on the edit form.
What I expected to happen:
The Date of Birth should be blank when I click Load Patron, if no value was entered during self-registration.
I tried this on master and on 2.9.5, but I'm unable replicate it because I'm not able to get as far along in the steps as John did.
I configured my library settings as described, with show dob on patron registration set for true, but leaving the require dob field setting unset.
When I then go to the OPAC to try submit the registration form, leaving the dob field blank, I get a popup telling me I have entered an invalid date and asking me to enter the date of birth in the proper format.
This, IMO, is a bug on its own since it should be requiring a DOB, but it's different than the bug described here. Maybe there's some other setting I'm missing?
Setting to incomplete for now pending further feedback.