]> git.koha-community.org Git - koha.git/commit
Bug 17555: Add Koha::Patron->category
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 4 Nov 2016 15:05:08 +0000 (15:05 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 15 Nov 2016 15:10:00 +0000 (15:10 +0000)
commit4277f43a91189e5bbe51e82061d0ea3a81167fd7
tree2c9346f5f53a46710fa316cf2b68cc6ea8853b2d
parent3a6d38cbcb3644cefd508f3c4489045dd650316f
Bug 17555: Add Koha::Patron->category

We need to use the DBIx::Class relationship to retrieve the patron
category.
It is more convenient to have a Koha::Patron->category method to
retrieve the category of a given patron.

Test plan:
Make sure that the tests in t/db_dependent/Koha/Patron* return green

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Patron.pm
t/db_dependent/Koha/Patrons.t