DataObjects/Core_notify.php
authorAlan Knowles <alan@roojs.com>
Thu, 27 Nov 2014 08:36:40 +0000 (16:36 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 27 Nov 2014 08:36:40 +0000 (16:36 +0800)
DataObjects/Core_notify.php

index 4f0d684..cfa2a06 100644 (file)
@@ -90,6 +90,13 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
         }
         
     }
+    function beforeUpdate($old, $request,$roo)
+    {
+        if (empty($request['act_when']) && !empty($request['act_start'])) {
+            $this->act_start($request['act_start']);
+        }
+    }
+    
     
     function act_start($set = false)
     {