Fix #6507 - sedning test emails
authorAlan Knowles <alan@roojs.com>
Thu, 17 Dec 2020 07:58:24 +0000 (15:58 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 17 Dec 2020 07:58:24 +0000 (15:58 +0800)
DataObjects/Core_notify.php
MessagePreview.php

index 6cc632a..2cc4a12 100644 (file)
@@ -329,7 +329,7 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
         }
         
         try {
-            $send->get($this->id, array());
+            $send->get($this->id, array('force' => 1));
         } catch (Exception $e) {
             ob_end_clean();
             return $e;
index ec8cf6c..6a7e94f 100644 (file)
@@ -52,8 +52,8 @@ class Pman_Core_MessagePreview extends Pman
             'ontable'       => $_REQUEST['_table'],
             'person_id'     => $this->authUser->id,
             'person_table'  => 'Person',
-            'act_when'      => $cn->sqlValue("NOW()"),
-            'act_start'     => $cn->sqlValue("NOW()")
+            'act_when'      => $cn->sqlValue("NOW() + INTERVAL 10 MINUTE"),
+            'act_start'     => $cn->sqlValue("NOW() + INTERVAL 10 MINUTE")
         ));
         
         $cn->insert();