Bug 17627: Move C4::Koha::GetItemTypesByCategory to Koha::ItemTypes
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 15 Nov 2016 10:17:22 +0000 (10:17 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 17 Feb 2017 15:31:32 +0000 (15:31 +0000)
commita3d2273b3516129eab774e95841a5cb61c8e4580
tree51700e039ffe7d6f32dc4be4f8fcfafbd71235dc
parentf0e7a120ced84b4577f90d2e1879289c02b69bcd
Bug 17627: Move C4::Koha::GetItemTypesByCategory to Koha::ItemTypes

C4::Koha::GetItemTypesByCategory can be easily replaced with
Koha::ItemTypes->search({ searchcategory => ? });

So let's replace it where it is used.

Test plan:
Make sure this patch does not break the test plan of bug 10937

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Koha.pm
opac/opac-search.pl
t/db_dependent/Koha.t