dev/core/#133 Make Conditions Stricter When Checking If Reply-To Field Is Empty
authorvarshith89 <vinu@compucorp.co.uk>
Mon, 21 May 2018 09:08:06 +0000 (09:08 +0000)
committervarshith89 <vinu@compucorp.co.uk>
Mon, 18 Jun 2018 19:34:27 +0000 (19:34 +0000)
dev/core/#133 Retain existing behaviour on update and only be aggressive on adding new

CRM/Mailing/BAO/Mailing.php

index 9e7c1ea53ab333ed4ea316f01393cfb779dfa59e..23a1a411f42f7813392248de8c3a7d27e482defb 100644 (file)
@@ -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'];