Module builder
This commit is contained in:
parent
fdcbf082fd
commit
53a523ba9d
@ -6173,16 +6173,24 @@ abstract class CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $error && ! $notrigger) {
|
if (! $error)
|
||||||
|
{
|
||||||
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX . $this->table_element);
|
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX . $this->table_element);
|
||||||
|
}
|
||||||
|
|
||||||
if (!$notrigger) {
|
if (! $error)
|
||||||
|
{
|
||||||
|
$result=$this->insertExtraFields();
|
||||||
|
if ($result < 0) $error++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! $error && ! $notrigger)
|
||||||
|
{
|
||||||
// Call triggers
|
// Call triggers
|
||||||
$result=$this->call_trigger(strtoupper(get_class($this)).'_CREATE',$user);
|
$result=$this->call_trigger(strtoupper(get_class($this)).'_CREATE',$user);
|
||||||
if ($result < 0) { $error++; }
|
if ($result < 0) { $error++; }
|
||||||
// End call triggers
|
// End call triggers
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Commit or rollback
|
// Commit or rollback
|
||||||
if ($error) {
|
if ($error) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user