]> git.koha-community.org Git - koha.git/commit
Bug 11925: Check ages limits when creating/updating patrons
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 28 Apr 2015 09:45:46 +0000 (11:45 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 20 May 2015 14:19:07 +0000 (11:19 -0300)
commitcc393df50fb1862925c3122aeadd579a627912c6
tree6c6bc4c2ce646f03cb88759be10d606be29b83fd
parentde448c0a1ee7619952cec3d08ce41b0fad4d6132
Bug 11925: Check ages limits when creating/updating patrons

The check on the ages limits is only done when the dateofbirth field is
mandatory, which does not make any sense.
This check should be done when the field is filled.

Test plan:
1/ Remove the dateofbirth field from the BorrowerMandatoryField pref
2/ Create a patron category for teenager (say between 12-17y)
3/ Try to create a patron in this category outside the range of the ages
limits.
You should not be able to do it.

Signed-off-by: Christopher Brannon <cbrannon@cdalibary.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
members/memberentry.pl