]> git.koha-community.org Git - koha.git/commit
Bug 11518: Add new method to K::S::R::Item that will always return the correct itemtype
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 10 Jan 2014 13:03:59 +0000 (08:03 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 29 Apr 2014 15:04:55 +0000 (15:04 +0000)
commitcef35259ee120f37d19962208c0afc092348f5b2
tree7e631628a6388af19cc63b1e6b61d952b8e1f380
parent8f287eebc5a3a3afca5443e8d9f677c293c1ee52
Bug 11518: Add new method to K::S::R::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: Galen Charlton <gmc@esilibrary.com>
Koha/Schema/Result/Biblio.pm
Koha/Schema/Result/Item.pm
t/db_dependent/Items.t