Bug 15297

Summary: Preselect earlier date than today for date of birth date pickers when creating a patron account in staff or OPAC
Product: Koha Reporter: Martin Persson <xarragon>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: RESOLVED INVALID QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low CC: gmcharlt, jonathan.druart, veron
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: Sponsored Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Martin Persson 2015-12-03 17:30:06 UTC
Bug 12342 has a fix for the staff interface (http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12342) for date picker available range. This is the same fix but for the OPAC.
Comment 1 Martin Persson 2015-12-03 17:44:46 UTC
This was originally part of bug 12342 but was moved out to a separate feature.

When new patrons are added the default selected date is the current date minus one day. I assume we do not register people on the day that they are born. This patch changes the default to -15 years, assuming the average patron entry age is around that age.
Comment 2 Jonathan Druart 2016-01-06 11:44:23 UTC
Did you forget to apply the patch?
Comment 3 Katrin Fischer 2020-04-18 21:47:12 UTC
Both the datepicker for date of birth in staff and OPAC go back a 100 years by default now. 

Both preselect to today's date. I am not sure if going back 15 years by default would really be helpful with the new longer year select and the option to type the date in directly? It might raise questions instead for being arbitrary.
Comment 4 Katrin Fischer 2023-08-28 20:00:10 UTC
The flatpickr year selector works differently than our old one. Instead of a (limited) list of years, you can increment/decrement by 1 OR enter the year into the field. I think this renders this bug invalid for flatpickr.