DataObjects/Core_notify.php
authorAlan Knowles <alan@roojs.com>
Fri, 12 Jul 2013 08:07:38 +0000 (16:07 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 12 Jul 2013 08:07:38 +0000 (16:07 +0800)
DataObjects/Core_notify.php

index a259651..e95d011 100644 (file)
@@ -77,6 +77,11 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
         return false;
         
     }
+    function beforeDelete($dependants_array, $roo) {
+        if ($this->delivered()) {
+            $roo->jerr("you can not delete a record of a successfull delivery");
+        }
+    }
     
     
     function act_start($set = false)