[Koha-patches] [PATCH 1/4] overdue_notices.pl various bugs in HEAD 3.2

Frédéric Demians f.demians at tamil.fr
Fri Jan 8 23:04:14 CET 2010


Those bugs must have been introduced by merge?

- Overdue to all libraries with overdue rules doesn't work
- Overdue to a specific library doesn't work also
---
 misc/cronjobs/overdue_notices.pl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl
index 94a1fcd..0923efc 100755
--- a/misc/cronjobs/overdue_notices.pl
+++ b/misc/cronjobs/overdue_notices.pl
@@ -290,7 +290,7 @@ if (@branchcodes) {
     @branches = grep { $seen{$_} } @overduebranches;
     
     
-    if (@branches) {
+    if (@overduebranches) {
 
     	my $branch_word = scalar @branches > 1 ? 'branches' : 'branch';
 	$verbose and warn "$branch_word @branches have overdue rules\n";
@@ -327,6 +327,7 @@ if ( defined $csvfilename ) {
     }
 }
 
+ at branches = @overduebranches unless @branches;
 foreach my $branchcode (@branches) {
 
     my $branch_details = C4::Branch::GetBranchDetail($branchcode);
-- 
1.6.4.3




More information about the Koha-patches mailing list