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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to