From: Alan Knowles Date: Thu, 27 Nov 2014 08:35:59 +0000 (+0800) Subject: DataObjects/Core_notify.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=66dcd3eb843a0dd6aab2d91fc32592395eb9bcad DataObjects/Core_notify.php --- 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) {