DataObjects/Core_notify.php
[Pman.Core] / DataObjects / Core_notify.php
index 2776ce4..4f0d684 100644 (file)
@@ -41,6 +41,7 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
     public $trigger_person_id;                 // int(11)
     public $trigger_event_id;              // int(11)  
     public $evtype;                         // event type (or method to call)fall
+    public $act_start;
     
     /* the code above is auto generated do not remove the tag below */
     ###END_AUTOCODE
@@ -82,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)
     {