Skip to content

Commit

Permalink
Merge pull request #3 from goltra/fix-old-attributes
Browse files Browse the repository at this point in the history
Corrige old_attributes
  • Loading branch information
yepes authored Mar 22, 2024
2 parents 1f38e8a + 7393ab8 commit 44bc137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LogBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public function handleLog($event) {

if (isset($this->ignoreLogBehavior) && $this->ignoreLogBehavior)
return;

$oldAttributes = array_merge($model->oldAttributes, $event->changedAttributes);
Log::l(
$model->oldAttributes,
$oldAttributes,
$model->attributes,
$event,
$model::className(),
Expand Down

0 comments on commit 44bc137

Please sign in to comment.