/**
* 'approval_status_id' set in
- * CRM_Mailing_Form_Mailing_Schedule::postProcess() or via API.
+ * CRM_Mailing_Form_Schedule::postProcess() or via API.
*/
if (isset($params['approval_status_id']) && $params['approval_status_id']) {
$job = new CRM_Mailing_BAO_Job();
// as it appeared to prevent mails being scheduled if they were
// saved as a template, and this wasn't the documented behaviour.
// $saveTemplate = $this->controller->exportValue('saveTemplate');
- $job->status = 'Scheduled';
if ($params['now']) {
$params['scheduled_date'] = date('YmdHis');
}
// set the scheduled_id
$params['scheduled_id'] = $session->get('userID');
$params['scheduled_date'] = date('YmdHis');
- //$params['created_date'] = CRM_Utils_Date::isoToMysql($params['created_date']);
// set approval details if workflow is not enabled
if (!CRM_Mailing_Info::workflowEnabled()) {