Bug 5731 When No ccode is defined for an item, then moredetail.pl throws a 500 error
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
d7208f76bd
commit
1abf1ea2d0
1 changed files with 1 additions and 1 deletions
|
@ -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'} );
|
||||
|
|
Loading…
Reference in a new issue