Bug 17557: Koha::Patrons - Move GetAge to ->set_age (and remove SetAge)
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 4 Nov 2016 16:21:03 +0000 (16:21 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 16 Dec 2016 11:57:38 +0000 (11:57 +0000)
commit01226c61a1be588cb472e7ca7822c0e9d4ecf7b4
tree6f68706202454224cc05d744e4f928cd8a02e86e
parent7808bd690b2e51c8a56d3a11f84fbe2b332beb24
Bug 17557: Koha::Patrons - Move GetAge to ->set_age (and remove SetAge)

As said in the previous commit, I considered SetAge as unnecessary and
removed it.

Test plan:
1/ Edit a patron using the different 'Edit' links
2/ Play with the patron category limited to age ranges, and date of
birth
3/ You should get the expected warning if the date of birth is inside
the patron category date range.

To finish:
  prove t/Circulation/AgeRestrictionMarkers.t t/db_dependent/Reserves.t \
        t/db_dependent/Koha/Patrons.t t/db_dependent/Members.t
should return green

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Members.pm
Koha/Patron.pm
members/memberentry.pl
members/moremember.pl
t/Circulation/AgeRestrictionMarkers.t
t/db_dependent/Reserves.t