From 864f90efd49661f2daba261d69b67d97d378a08a Mon Sep 17 00:00:00 2001 From: tipaul Date: Fri, 19 Dec 2003 14:44:46 +0000 Subject: [PATCH] fix for #318 --- C4/Circulation/Circ2.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Circulation/Circ2.pm b/C4/Circulation/Circ2.pm index b8de948f88..f7da836574 100755 --- a/C4/Circulation/Circ2.pm +++ b/C4/Circulation/Circ2.pm @@ -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); -- 2.39.5