From d3521e433d2ece64920218c1bf06fb50b93ff8e1 Mon Sep 17 00:00:00 2001 From: varshith89 Date: Mon, 21 May 2018 09:08:06 +0000 Subject: [PATCH] dev/core/#133 Make Conditions Stricter When Checking If Reply-To Field Is Empty dev/core/#133 Retain existing behaviour on update and only be aggressive on adding new --- CRM/Mailing/BAO/Mailing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 9e7c1ea53a..23a1a411f4 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -1452,7 +1452,7 @@ ORDER BY civicrm_email.is_bulkmail DESC } $mailing->domain_id = CRM_Utils_Array::value('domain_id', $params, CRM_Core_Config::domainID()); - if (!isset($params['replyto_email']) && + if (((!$id && empty($params['replyto_email'])) || !isset($params['replyto_email'])) && isset($params['from_email']) ) { $params['replyto_email'] = $params['from_email']; -- 2.25.1