Commit d8333f0e authored by Monish Deb's avatar Monish Deb

Merge pull request #7924 from lucianov88/master

CRM-14097 ISSUE - Schedule Reminder UI
parents 34593f3e 02fdbd86
......@@ -309,11 +309,15 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form {
}
if (!empty($fields['is_active']) &&
CRM_Utils_Array::value('mode', $fields) == 'SMS' &&
CRM_Utils_System::isNull($fields['subject'])
) {
$errors['subject'] = ts('Subject is a required field.');
}
if (!empty($fields['is_active']) &&
CRM_Utils_System::isNull(trim(strip_tags($fields['html_message'])))
) {
$errors['html_message'] = ts('The HTML message is a required field.');
}
if (empty($self->_context) && CRM_Utils_System::isNull(CRM_Utils_Array::value(1, $fields['entity']))) {
$errors['entity'] = ts('Please select entity value');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment