Bug 11925

Summary: patron category not checking ages limits
Product: Koha Reporter: Nicole C. Engard <nengard>
Component: PatronsAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, jonathan.druart, kyle.m.hall, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 11925: Check ages limits when creating/updating patrons
[SIGNED OFF]Bug 11925: Check ages limits when creating/updating patrons
[PASSED QA] Bug 11925: Check ages limits when creating/updating patrons

Description Nicole C. Engard 2014-03-11 20:12:04 UTC
At some point in the past I know that Koha checked the patron category for age restrictions and upperage limits - or so I thought it did.  Koha 3.12+ is not checking. It's letting me create patrons that are outside of the date range put on the patron category.  I tested in master and 3.12.10
Comment 1 Jonathan Druart 2015-04-28 09:49:58 UTC Comment hidden (obsolete)
Comment 2 Christopher Brannon 2015-04-29 20:27:48 UTC Comment hidden (obsolete)
Comment 3 Katrin Fischer 2015-04-29 22:07:53 UTC
Created attachment 38706 [details] [review]
[PASSED QA] 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>
Comment 4 Tomás Cohen Arazi 2015-05-20 14:26:30 UTC
Patch pushed to master.

Thanks Jonathan!