Skip to content

Commit

Permalink
Merge pull request #11973 from lcdservices/master
Browse files Browse the repository at this point in the history
dev/core#59 scheduled reminder email validation
  • Loading branch information
eileenmcnaughton authored Apr 17, 2018
2 parents 3ddaaaf + e09225f commit 733a402
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Admin/Form/ScheduleReminders.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ public static function formRule($fields, $files, $self) {
$errors['absolute_date'] = ts('Absolute date cannot be earlier than the current time.');
}
}

if (!CRM_Utils_Rule::email($fields['from_email'])) {
$errors['from_email'] = ts('Please enter a valid email address.');
}
$recipientKind = array(
'participant_role' => array(
'name' => 'participant role',
Expand Down

0 comments on commit 733a402

Please sign in to comment.