From: Alan Knowles Date: Mon, 29 Oct 2018 01:16:15 +0000 (+0800) Subject: Pman/Roo.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=42715c9f80c5d474af25c0b9ac29764501eee2e6 Pman/Roo.php --- diff --git a/Pman/Roo.php b/Pman/Roo.php index 3791534..5cd630a 100644 --- a/Pman/Roo.php +++ b/Pman/Roo.php @@ -937,10 +937,11 @@ class Pman_Roo extends Pman if ($res === false) { $this->jerr($x->_lastError->toString()); } + $ev = $this->addEvent("ADD", $x); if (method_exists($x, 'onInsert')) { - $x->onInsert($_REQUEST, $this); + $x->onInsert($_REQUEST, $this, $ev); } - $ev = $this->addEvent("ADD", $x); + if ($ev) { $ev->audit($x); }