Something prevents overdue_notices.pl to send message directly to patron
email.
---
 misc/cronjobs/overdue_notices.pl |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl
index 0923efc..b358797 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"} );
-- 
1.6.4.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to