From e14a2c2feece079c5a72bd1d1aa54c09f3782d8d Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Wed, 18 Apr 2018 00:24:01 +0000 Subject: [PATCH] Bug 20592: Scope creep - fix other noise --- catalogue/moredetail.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index 845d10e9e9..02ba741716 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -132,9 +132,9 @@ foreach ( keys %{$data} ) { ($itemnumber) and @items = (grep {$_->{'itemnumber'} == $itemnumber} @items); foreach my $item (@items){ $item->{object} = Koha::Items->find( $item->{itemnumber} ); - $item->{'collection'} = $ccodes->{ $item->{ccode} } if ($ccodes); + $item->{'collection'} = $ccodes->{ $item->{ccode} } if ($ccodes && $item->{ccode}); $item->{'itype'} = $itemtypes->{ $item->{'itype'} }->{'translated_description'}; - $item->{'replacementprice'} = sprintf( "%.2f", $item->{'replacementprice'} ); + $item->{'replacementprice'} = sprintf( "%.2f", $item->{'replacementprice'} // 0 ); if ( defined $item->{'copynumber'} ) { $item->{'displaycopy'} = 1; if ( defined $copynumbers->{ $item->{'copynumber'} } ) { -- 2.11.0