From 74aa1d1eddbdf0a12fe4130ff1d5be650c1cbdd4 Mon Sep 17 00:00:00 2001 From: rangi Date: Wed, 31 Jan 2001 22:09:31 +0000 Subject: [PATCH] Fixed a little bug in getiteminformation, it wasnt returning item loanlength --- C4/Circulation/Circ2.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/C4/Circulation/Circ2.pm b/C4/Circulation/Circ2.pm index 6ae4a95f94..92e08d4b45 100755 --- a/C4/Circulation/Circ2.pm +++ b/C4/Circulation/Circ2.pm @@ -146,6 +146,11 @@ sub getiteminformation { $sth->finish; #$iteminformation->{'dewey'}=~s/0*$//; ($iteminformation->{'dewey'} == 0) && ($iteminformation->{'dewey'}=''); + $sth=$dbh->prepare("select * from itemtypes where itemtype='$iteminformation->{'itemtype'}'"); + $sth->execute; + my $itemtype=$sth->fetchrow_hashref; + $iteminformation->{'loanlength'}=$itemtype->{'loanlength'}; + $sth->finish; } $dbh->disconnect; return($iteminformation); -- 2.39.5