https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19004

--- Comment #18 from Jonathan Druart <[email protected]> 
---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to