[Koha-patches] [PATCH] Fixes bug 3393: Overdue_notices.pl not respecting default notice rules

Ian Walls ian.walls at bywatersolutions.com
Wed Nov 17 22:29:25 CET 2010


---
 C4/Overdues.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Overdues.pm b/C4/Overdues.pm
index 032ca93..468c252 100644
--- a/C4/Overdues.pm
+++ b/C4/Overdues.pm
@@ -956,7 +956,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 AND branchcode <> ''");
+    my $rqoverduebranches = $dbh->prepare("SELECT DISTINCT branchcode FROM overduerules WHERE delay1 IS NOT NULL");
     $rqoverduebranches->execute;
     my @branches = map { shift @$_ } @{ $rqoverduebranches->fetchall_arrayref };
     return @branches;
-- 
1.5.6.5



More information about the Koha-patches mailing list