Browse Source

Fixed a little bug in getiteminformation, it wasnt returning item loanlength

3.0.x
rangi 21 years ago
parent
commit
74aa1d1edd
  1. 5
      C4/Circulation/Circ2.pm

5
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);

Loading…
Cancel
Save