Skip to content
Snippets Groups Projects
Commit fb6afb9e authored by Deepak Srivastava's avatar Deepak Srivastava
Browse files

CRM-12215

parent 60778933
Branches
Tags
No related merge requests found
......@@ -179,7 +179,7 @@ class CRM_Mailing_Form_Test extends CRM_Core_Form {
* @return boolean true on succesful SMTP handoff
* @access public
*/
static function &testMail($testParams, $files, $self) {
static function testMail($testParams, $files, $self) {
$error = NULL;
$urlString = 'civicrm/mailing/send';
......@@ -260,6 +260,14 @@ class CRM_Mailing_Form_Test extends CRM_Core_Form {
}
}
if (CRM_Utils_Array::value('_qf_Test_next', $testParams) &&
$self->get('count') <= 0) {
return array(
'_qf_default' =>
ts("You can not schedule or send this mailing because there are currently no recipients selected. Click 'Previous' to return to the Select Recipients step, OR click 'Save & Continue Later'."),
);
}
if (CRM_Utils_Array::value('_qf_Import_refresh', $_POST) ||
CRM_Utils_Array::value('_qf_Test_next', $testParams) ||
!CRM_Utils_Array::value('sendtest', $testParams)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment