From 7a9f406ccb8a30b0025d1881f47157ab9d1fd758 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 17 Dec 2020 15:58:24 +0800 Subject: [PATCH] Fix #6507 - sedning test emails --- DataObjects/Core_notify.php | 2 +- MessagePreview.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.39.2