From 23996c78640710c006b0788bdefaf75c0a438d32 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sun, 20 Jan 2008 00:55:29 -0600 Subject: [PATCH] Fixing a bug that meant you had to have totals defined for branch/itemtype/category in issuingrules, or TooMany would always fail Signed-off-by: Joshua Ferraro --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 72bd385f9d..166b1e98c6 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -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 ) { -- 2.39.5