Pman/Roo.php
authorAlan Knowles <alan@roojs.com>
Mon, 29 Oct 2018 01:16:15 +0000 (09:16 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 29 Oct 2018 01:16:15 +0000 (09:16 +0800)
Pman/Roo.php

index 3791534..5cd630a 100644 (file)
@@ -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);
         }