From afcfb0e8bd30d61acfdaa7e1a9ee114186e7ce76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Fri, 8 Jan 2010 23:04:15 +0100 Subject: [PATCH] overdue_notices.pl send no email directly to patron Something prevents overdue_notices.pl to send message directly to patron email. --- misc/cronjobs/overdue_notices.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 0923efc8b2..b35879735d 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -415,7 +415,10 @@ END_SQL $sth->execute(@borrower_parameters); $verbose and warn $borrower_sql . "\n $branchcode | " . $overdue_rules->{'categorycode'} . "\n ($mindays, $maxdays)\nreturns " . $sth->rows . " rows"; - while( my ( $itemcount, $borrowernumber, $firstname, $lastname, $address1, $address2, $city, $postcode, $email ) = $sth->fetchrow ) { + while ( my ($itemcount, $borrowernumber, $firstname, $lastname, + $address1, $address2, $city, $postcode, $country, $email, + $longest_issue ) = $sth->fetchrow ) + { $verbose and warn "borrower $firstname, $lastname ($borrowernumber) has $itemcount items triggering level $i."; my $letter = C4::Letters::getletter( 'circulation', $overdue_rules->{"letter$i"} ); -- 2.39.5