IcingaObject: log changes before storing relations
This commit is contained in:
parent
74bb7d891e
commit
0507a65e0b
|
@ -479,14 +479,14 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
|
||||
public function onInsert()
|
||||
{
|
||||
$this->storeRelatedObjects();
|
||||
DirectorActivityLog::logCreation($this, $this->connection);
|
||||
$this->storeRelatedObjects();
|
||||
}
|
||||
|
||||
public function onUpdate()
|
||||
{
|
||||
$this->storeRelatedObjects();
|
||||
DirectorActivityLog::logModification($this, $this->connection);
|
||||
$this->storeRelatedObjects();
|
||||
}
|
||||
|
||||
protected function storeCustomVars()
|
||||
|
|
Loading…
Reference in New Issue