[Koha-bugs] [Bug 19004] Koha/Patrons.t fails when item-level_itypes is not set
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Sep 1 15:14:45 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19004
--- Comment #18 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Note to myself:
- my $item_level_itypes = C4::Context->preference("item-level_itypes");
- my $biblio = $item_level_itypes ? undef : Koha::Biblios->find( $item->{
biblionumber } ); # don't get bib data unless we need it
- my $itemtype = $item_level_itypes ? $item->{itype} :
$biblio->biblioitem->itemtype;
+ my $itemtype = $item->{itype}; # GetItem called effective_itemtype
This is not equal, but the previous code was buggy.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list