From 70f43ffb44fecdf5252e28d1b4c9f418303308b0 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Wed, 13 Apr 2016 16:40:56 +0530 Subject: [PATCH] CRM-18364: Reply-To field depopulates when saving then continuing a draft mailing add comment fix syntax typo --- ang/crmMailing/FromAddress.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ang/crmMailing/FromAddress.js b/ang/crmMailing/FromAddress.js index 2718ea0aa1..aae6499f1c 100644 --- a/ang/crmMailing/FromAddress.js +++ b/ang/crmMailing/FromAddress.js @@ -18,7 +18,10 @@ var addr = crmFromAddresses.getByLabel(newValue); mailing.from_name = addr.author; mailing.from_email = addr.email; - mailing.replyto_email = addr.email; + // CRM-18364: set replyTo as from_email only if custom replyTo is disabled in mail settings. + if (!CRM.crmMailing.enableReplyTo) { + mailing.replyto_email = crmFromAddresses.getByAuthorEmail(mailing.from_name, mailing.from_email, true).label; + } }); // FIXME: Shouldn't we also be watching mailing.from_name and mailing.from_email? } -- 2.25.1