[Koha-bugs] [Bug 20623] PDF export of a basket group fails when an item has an itemtype that is not in the itemtype table

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 11 15:27:10 CEST 2018


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Passed QA                   |Failed QA

--- Comment #10 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
We could avoid the fetch in some cases.
Maybe more:
  my $itemtype = ( $ord->{itemtype} and $biblioitem->itemtype )
    ? Koha::ItemTypes->find( $biblioitem->itemtype )
    : undef;

  $ord->{itemtype} = $itemtype ? $itemtype->description : undef;

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list