This commit is contained in:
tipaul 2003-12-19 14:44:46 +00:00
parent 52c95d1276
commit 864f90efd4
1 changed files with 3 additions and 1 deletions

View File

@ -295,7 +295,9 @@ sub getiteminformation {
$sth->execute($iteminformation->{'itemtype'});
my $itemtype=$sth->fetchrow_hashref;
$iteminformation->{'loanlength'}=$itemtype->{'loanlength'};
$iteminformation->{'notforloan'}=$itemtype->{'notforloan'};
# if specific item notforloan, don't use itemtype notforloan field.
# otherwise, use itemtype notforloan value to see if item can be issued.
$iteminformation->{'notforloan'}=$itemtype->{'notforloan'} unless $iteminformation->{'notforloan'};
$sth->finish;
}
return($iteminformation);