From f943ff784399e1db0be68d52ae6ea3cacafdf48b Mon Sep 17 00:00:00 2001 From: Sophie Meynieux Date: Fri, 30 Nov 2012 15:31:39 +0100 Subject: [PATCH] Bug 9180 : Use default overdue rules when specific rules are not defined for a branch Test plan : - define default overdue rules - define overdue rules for one branch - find a user with late documents in another branch Without the patch, if you run misc/cronjobs/overdue_notices.pl -n -v you can see that only branch with specific rules is processed. The user does not get any notice. With the patch all branches are processes, those without specific rules using default rules. A notice is generated for the user. --- C4/Overdues.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/Overdues.pm b/C4/Overdues.pm index ac66c36..668e2ee 100644 --- a/C4/Overdues.pm +++ b/C4/Overdues.pm @@ -1025,7 +1025,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 <> '' ORDER BY branchcode"); + my $rqoverduebranches = $dbh->prepare("SELECT DISTINCT branchcode FROM overduerules WHERE delay1 IS NOT NULL ORDER BY branchcode"); $rqoverduebranches->execute; my @branches = map { shift @$_ } @{ $rqoverduebranches->fetchall_arrayref }; if (!$branches[0]) { -- 1.7.5.4