Skip to content
Snippets Groups Projects
Unverified Commit 9c190b2b authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #5195 from aydreeihn/issue/audits

Issue: Configuration Audits
parents 05fd2aef 8523c01e
No related branches found
No related tags found
No related merge requests found
...@@ -683,8 +683,10 @@ class VerySimpleModel { ...@@ -683,8 +683,10 @@ class VerySimpleModel {
$data = array('dirty' => $this->dirty); $data = array('dirty' => $this->dirty);
Signal::send('model.updated', $this, $data); Signal::send('model.updated', $this, $data);
foreach ($this->dirty as $key => $value) { foreach ($this->dirty as $key => $value) {
$type = array('type' => 'edited', 'key' => $key, 'orm_audit' => true); if ($key != 'value' && $key != 'updated') {
Signal::send('object.edited', $this, $type); $type = array('type' => 'edited', 'key' => $key, 'orm_audit' => true);
Signal::send('object.edited', $this, $type);
}
} }
} }
# Refetch row from database # Refetch row from database
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment