From 66dcd3eb843a0dd6aab2d91fc32592395eb9bcad Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 27 Nov 2014 16:35:59 +0800 Subject: [PATCH] DataObjects/Core_notify.php --- DataObjects/Core_notify.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index b4fde9b7..4f0d6841 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -83,7 +83,13 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject $roo->jerr("you can not delete a record of a successfull delivery"); } } - + function beforeInsert($request,$roo) + { + if (empty($request['act_when']) && !empty($request['act_start'])) { + $this->act_start($request['act_start']); + } + + } function act_start($set = false) { -- 2.39.2