From 430a0fa948cf485a7d0ae40d639c37fa3070aed5 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Mon, 14 Apr 2008 18:03:49 -0400 Subject: [PATCH] Deletion of a mail domain deletes now all depending forwarders, aliases and mailboxes. --- interface/lib/classes/tform_actions.inc.php | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/interface/lib/classes/tform_actions.inc.php b/interface/lib/classes/tform_actions.inc.php index c193081..7b9a5a9 100644 --- a/interface/lib/classes/tform_actions.inc.php +++ b/interface/lib/classes/tform_actions.inc.php @@ -300,6 +300,8 @@ //$this->dataRecord = $app->db->queryOneRecord("SELECT * FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = ".$this->id); $this->dataRecord = $app->tform->getDataRecord($this->id); + + $this->onBeforeDelete(); // Saving record to datalog when db_history enabled if($app->tform->formDef["db_history"] == 'yes') { @@ -337,6 +339,10 @@ } + function onBeforeDelete() { + global $app, $conf; + } + function onAfterDelete() { global $app, $conf; } -- Gitblit v1.9.1