Bug 20623: (QA follow-up) avoid fetch() calls in some cases
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 35d887fece)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
1ea32136b5
commit
60ee36a1e0
|
|
@ -196,9 +196,11 @@ sub printbasketgrouppdf{
|
|||
}
|
||||
}
|
||||
|
||||
my $itemtype = Koha::ItemTypes->find( $biblioitem->itemtype );
|
||||
my $item_has_type_description = $ord->{itemtype} && $biblioitem->itemtype && $itemtype;
|
||||
$ord->{itemtype} = $item_has_type_description ? $itemtype->description : undef;
|
||||
my $itemtype = ( $ord->{itemtype} and $biblioitem->itemtype )
|
||||
? Koha::ItemTypes->find( $biblioitem->itemtype )
|
||||
: undef;
|
||||
$ord->{itemtype} = $itemtype ? $itemtype->description : undef;
|
||||
|
||||
$ord->{en} = $en ? $en : undef;
|
||||
$ord->{edition} = $edition ? $edition : undef;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue