]> git.koha-community.org Git - koha.git/commit
Bug 19276: (bug 17829 follow-up) Fix Statistic patrons behaviour
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 8 Sep 2017 15:47:03 +0000 (12:47 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 29 Sep 2017 16:03:56 +0000 (13:03 -0300)
commitbb61d5bc384102fe1dc8db4e69bfdb797337b968
treea62c08f40a632294ced146e08a896029377fd489
parent2b343df13e6d154296cf968cb709aa910c58f336
Bug 19276: (bug 17829 follow-up) Fix Statistic patrons behaviour

Bug 17829 must have been handle this specific case: GetMember set
category_type, but now $borrower is a Koha::Patron unblessed and does
not contain the category_type.
The fix is to call ->category->category_type on the Koha::Patron object
to be able to know if they are a statistic patrons.

Test plan:
Run the tests

Tests pass, as does QA test tool
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm
t/db_dependent/Circulation.t