[Koha-patches] [PATCH 04/54] When No ccodes, then moredetail show error 500
paul.poulain at biblibre.com
paul.poulain at biblibre.com
Thu Dec 16 11:53:58 CET 2010
From: Paul Poulain <paul.poulain at biblibre.com>
---
catalogue/moredetail.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl
index d790c41..4f40b04 100755
--- a/catalogue/moredetail.pl
+++ b/catalogue/moredetail.pl
@@ -87,7 +87,7 @@ my $itemnumber;
foreach my $item (@items){
$item->{itemlostloop}= GetAuthorisedValues(GetAuthValCode('items.itemlost',$fw),$item->{itemlost}) if GetAuthValCode('items.itemlost',$fw);
$item->{itemdamagedloop}= GetAuthorisedValues(GetAuthValCode('items.damaged',$fw),$item->{damaged}) if GetAuthValCode('items.damaged',$fw);
- $item->{'collection'} = $ccodes->{ $item->{ccode} };
+ $item->{'collection'} = $ccodes->{ $item->{ccode} } if ($ccodes);
$item->{'itype'} = $itemtypes->{ $item->{'itype'} }->{'description'};
$item->{'replacementprice'} = sprintf( "%.2f", $item->{'replacementprice'} );
$item->{'datelastborrowed'} = format_date( $item->{'datelastborrowed'} );
--
1.7.1
More information about the Koha-patches
mailing list