From 421bed8a50eb703414a3dbaf7220ea1a3fcd3b58 Mon Sep 17 00:00:00 2001 From: Maryse Simard Date: Tue, 5 Feb 2019 18:24:23 -0500 Subject: [PATCH] Bug 8000: (QA follow-up) Update the to_address in the message queue --- C4/Letters.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index 0a9cfb3..a6bc965 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -1323,7 +1323,7 @@ sub _send_message_by_email { $sendmail_params{'Auth'} = {user => $username, pass => $password, method => $method} if $username; - _update_message_to_address($message->{'message_id'},$to_address) unless $message->{to_address}; #if initial message address was empty, coming here means that a to address was found and queue should be updated + _update_message_to_address($message->{'message_id'},$sendmail_params{To}) if $message->{to_address} ne $sendmail_params{To}; #if initial message address was empty, coming here means that a to address was found and queue should be updated; same if to address was overriden by create_message_headers if ( Mail::Sendmail::sendmail( %sendmail_params ) ) { _set_message_status( { message_id => $message->{'message_id'}, -- 2.7.4