From 5c914000b1d4e743675d4a7e302ca8721ad54200 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 12 Jul 2013 16:07:38 +0800 Subject: [PATCH] DataObjects/Core_notify.php --- DataObjects/Core_notify.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index a259651a..e95d0116 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -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) -- 2.39.2