Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-20719 : Show warning on system status page if reply_id for mailing is not set to any default #10496

Merged
merged 1 commit into from
Mar 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CRM/Utils/Check/Component/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,25 @@ public function checkDbEngine() {
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 <a %1>Headers, Footers, and Automated Messages</a>. 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
Expand Down