dev/core#737 - SMS not sent if 'Send Immediately' option is chosen on the last screen
authorJitendra Purohit <jitendra@fuzion.co.nz>
Tue, 19 Feb 2019 04:02:20 +0000 (09:32 +0530)
committerJitendra Purohit <jitendra@fuzion.co.nz>
Tue, 19 Feb 2019 04:02:20 +0000 (09:32 +0530)
CRM/SMS/Form/Schedule.php

index 1858e2a749ae3b03907c22382e40b8b8ef13aeaf..f4ddf7d868f1c2870561b3e4cdf12eeb02e0db27 100644 (file)
@@ -152,7 +152,7 @@ class CRM_SMS_Form_Schedule extends CRM_Core_Form {
       CRM_Core_Error::fatal(ts('Could not find a mailing id'));
     }
 
-    $send_option = $this->controller->exportValue($this->_name, 'send_option');
+    $params['send_option'] = $this->controller->exportValue($this->_name, 'send_option');
     if (isset($params['send_option']) && $params['send_option'] == 'send_immediate') {
       $params['scheduled_date'] = date('YmdHis');
     }