Fixing a bug that meant you had to have totals defined for
authorChris Cormack <crc@liblime.com>
Sun, 20 Jan 2008 06:55:29 +0000 (00:55 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Sun, 20 Jan 2008 16:17:55 +0000 (10:17 -0600)
branch/itemtype/category in issuingrules, or TooMany would always fail

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Circulation.pm

index 72bd385..166b1e9 100644 (file)
@@ -435,7 +435,7 @@ sub TooMany {
         # now checking for total
         $sth->execute( $cat_borrower, '', $branch );
         my $result = $sth->fetchrow_hashref;
-        if ( $result->{maxissueqty} ne '*' ) {
+        if ( $result->{maxissueqty} ne '' ) {
             $sth2->execute( $borrower->{'borrowernumber'}, $type );
             my $alreadyissued = $sth2->fetchrow;
             if ( $result->{'maxissueqty'} <= $alreadyissued ) {