Index: core/kernel/db/dbitem.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/kernel/db/dbitem.php (revision 16016) +++ core/kernel/db/dbitem.php (revision ) @@ -962,6 +962,8 @@ // insert into temp table (id is not auto-increment field) $insert_id = $this->FieldValues[$this->IDField]; } + + $temp_id = $this->GetID(); $this->setID($insert_id); $this->OriginalFieldValues = $this->FieldValues; @@ -980,7 +982,7 @@ $this->setTempID(); } - $this->raiseEvent('OnAfterItemCreate'); + $this->raiseEvent('OnAfterItemCreate', null, array('temp_id' => $temp_id)); $this->Loaded = true; return true;