fix for #318
authortipaul <tipaul>
Fri, 19 Dec 2003 14:44:46 +0000 (14:44 +0000)
committertipaul <tipaul>
Fri, 19 Dec 2003 14:44:46 +0000 (14:44 +0000)
C4/Circulation/Circ2.pm

index b8de948..f7da836 100755 (executable)
@@ -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);