]> git.koha-community.org Git - koha.git/commit
Bug 11518 - Add new method to Koha::Schema::Result::Item that will always return...
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 10 Jan 2014 13:03:59 +0000 (08:03 -0500)
committerMason James <mtj@kohaaloha.com>
Mon, 19 Jan 2015 03:22:53 +0000 (16:22 +1300)
commit26897109c99f8c93155f53d3d0a243015283eef6
tree12f8e1fbe37b94cc5b38dd97ff3cb6dfdf23dcba
parent8669981321168e663b364aecaa430f2f2bb1964f
Bug 11518 - Add new method to Koha::Schema::Result::Item that will always return the correct itemtype

There are many disparate areas of Koha that deal with item level
itemtypes vs record level itemtypes. We can take advantage of
DBIx::Class to make smarter objects that automatically return the
correct value depending on the system preference.

Test Plan:
1) Apply this patch
2) Run t/db_dependent/Items.t

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Mason James <mtj@kohaaloha.com>
Koha/Schema/Result/Item.pm
t/db_dependent/Items.t