[Koha-patches] [PATCH] partial fix for #2471, (overdue notice sent twice)

paul.poulain at biblibre.com paul.poulain at biblibre.com
Tue Aug 5 18:53:29 CEST 2008


From: Paul POULAIN <paul.poulain at biblibre.com>

diff --git a/C4/Overdues.pm b/C4/Overdues.pm
index 0a720b8..e735ff9 100644
--- a/C4/Overdues.pm
+++ b/C4/Overdues.pm
@@ -973,7 +973,7 @@ returns a list of branch codes for branches with overdue rules defined.
 
 sub GetBranchcodesWithOverdueRules {
     my $dbh               = C4::Context->dbh;
-    my $rqoverduebranches = $dbh->prepare("SELECT DISTINCT branchcode FROM overduerules WHERE delay1 IS NOT NULL");
+    my $rqoverduebranches = $dbh->prepare("SELECT DISTINCT branchcode FROM overduerules WHERE delay1 IS NOT NULL AND branchcode <> ''");
     $rqoverduebranches->execute;
     my @branches = map { shift @$_ } @{ $rqoverduebranches->fetchall_arrayref };
     $rqoverduebranches->finish;
-- 
1.5.3.2




More information about the Koha-patches mailing list