[Koha-bugs] [Bug 19402] Date of birth datepicker year range depending on current value

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 3 11:04:14 CEST 2017


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

--- Comment #1 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 67543
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67543&action=edit
Bug 19402: Date of birth datepicker year range not depending on current value

Bug 18447 sets for date of birth a year range "c-100:c" meaning current year
and 100 years earlier.
This is good when imput is empty.
But when input already contains a date, say "01/01/1950", years range is 1850
to 1950.

This patch sets for date of birth a year range "-120:+0" to not be dependent on
current value.
Some people may have more than 100 years (maybe more often in the future) so i
choose to propose maximum 120 years old.

To test :
1) Go to intranet
2) Create a new patron
3) Click on date picker on "Date of birth" input
4) Look at available years in combobox, you see from 1897 to 2017
5) Edit an existing patron with for example date of birth in 1950
6) Repeat 3) and 4)
7) Go to OPAC
8) Login with a patron with for example date of birth in 1950
9) Go to "your personal details"
10) Repeate 3) and 4)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list