Skip to content

Commit

Permalink
Added additional task list addition check to Task::afterSave
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh4 committed May 8, 2020
1 parent d8161c2 commit 52b3aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public function afterSave($insert, $changedAttributes)

}

if($this->list) {
if($this->list && $this->list->addition) {
$this->list->addition->updateAttributes(['updated_at' => new Expression('NOW()')]);
}
}
Expand Down

0 comments on commit 52b3aa9

Please sign in to comment.