From: Alan Knowles Date: Thu, 17 Dec 2020 07:58:24 +0000 (+0800) Subject: Fix #6507 - sedning test emails X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=7a9f406ccb8a30b0025d1881f47157ab9d1fd758 Fix #6507 - sedning test emails --- diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 6cc632ab..2cc4a129 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -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; diff --git a/MessagePreview.php b/MessagePreview.php index ec8cf6c6..6a7e94fe 100644 --- a/MessagePreview.php +++ b/MessagePreview.php @@ -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();