overdue_notices.pl send no email directly to patron

Something prevents overdue_notices.pl to send message directly to patron
email.
This commit is contained in:
Frédéric Demians 2010-01-08 23:04:15 +01:00 committed by Henri-Damien LAURENT
parent f1bc7f4094
commit afcfb0e8bd

View file

@ -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"} );