X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FLetters.pm;fp=C4%2FLetters.pm;h=89213fe6ddefa8a56b5a8a6f366c9f76acf959f0;hb=763d69732e518272b8537ce3d3f781b84370b4da;hp=5a929d01aeb0c0b8c822f7603ad0a667fc99e5aa;hpb=5483ec62046fac519c6dc2edb61b9b4c21c82a3c;p=koha_gimpoz diff --git a/C4/Letters.pm b/C4/Letters.pm index 5a929d01ae..89213fe6dd 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -307,7 +307,8 @@ sub SendAlerts { # search the biblionumber my $strsth = $type eq 'claimacquisition' ? qq{ - SELECT aqorders.*,aqbasket.*,biblio.*,biblioitems.*,aqbooksellers.* + SELECT aqorders.*,aqbasket.*,biblio.*,biblioitems.*,aqbooksellers.*, + aqbooksellers.id AS booksellerid FROM aqorders LEFT JOIN aqbasket ON aqbasket.basketno=aqorders.basketno LEFT JOIN biblio ON aqorders.biblionumber=biblio.biblionumber @@ -316,7 +317,8 @@ sub SendAlerts { WHERE aqorders.ordernumber IN ( } : qq{ - SELECT serial.*,subscription.*, biblio.*, aqbooksellers.* + SELECT serial.*,subscription.*, biblio.*, aqbooksellers.*, + aqbooksellers.id AS booksellerid FROM serial LEFT JOIN subscription ON serial.subscriptionid=subscription.subscriptionid LEFT JOIN biblio ON serial.biblionumber=biblio.biblionumber @@ -356,7 +358,7 @@ sub SendAlerts { # ... then send mail my %mail = ( - To => join( ','. @email), + To => join( ',', @email), From => $userenv->{emailaddress}, Subject => Encode::encode( "utf8", "" . $letter->{title} ), Message => Encode::encode( "utf8", "" . $letter->{content} ),