From 42715c9f80c5d474af25c0b9ac29764501eee2e6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 29 Oct 2018 09:16:15 +0800 Subject: [PATCH] Pman/Roo.php --- Pman/Roo.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.39.2