From 765e99a6af91cb5711a52ef78fb3a908737c0291 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Mon, 12 Jun 2017 12:15:17 +0530 Subject: [PATCH] CRM-20719 : ensure reply id is set to any default value --- CRM/Utils/Check/Component/Env.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index 8fc607b67e..415fadad48 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -835,6 +835,25 @@ class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component { return $messages; } + /** + * ensure reply id is set to any default value + * @return array + */ + public function checkReplyIdForMailing() { + $messages = array(); + + if (!CRM_Mailing_PseudoConstant::defaultComponent('Reply', '')) { + $messages[] = new CRM_Utils_Check_Message( + __FUNCTION__, + ts('Reply Auto Responder is not set to any default value in Headers, Footers, and Automated Messages. This will disable the submit operation on any mailing created from CiviMail.', array(1 => 'href="' . CRM_Utils_System::url('civicrm/admin/component', 'reset=1') . '"')), + ts('No Default value for Auto Responder.'), + \Psr\Log\LogLevel::WARNING, + 'fa-reply' + ); + } + return $messages; + } + /** * Check for required mbstring extension * @return array -- 2.25.1