[Koha-bugs] [Bug 9091] New: Error in logic CheckBorrowerDebarred
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Nov 15 19:38:27 CET 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9091
Bug ID: 9091
Summary: Error in logic CheckBorrowerDebarred
Classification: Unclassified
Change sponsored?: ---
Product: Koha
Version: 3.8
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Circulation
Assignee: koha-bugs at lists.koha-community.org
Reporter: jdeca at smfpl.org
CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com
In Overdues.pm subroutine CheckBorrowerDebarred.
As far as I can tell debarred is 0 or 1 what is the purpose of testing against
NOW()?
sub CheckBorrowerDebarred {
my ($borrowernumber) = @_;
my $dbh = C4::Context->dbh;
my $query = qq|
SELECT debarred
FROM borrowers
WHERE borrowernumber=?
AND debarred > NOW() <==========??
|;
my $sth = $dbh->prepare($query);
$sth->execute($borrowernumber);
my $debarredstatus = $sth->fetchrow;
return $debarredstatus;
}
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list