no message

This commit is contained in:
StudioTem committed 2023-02-24 17:27:02 +01:00
1 parent 97db8e29d7
commit 7defabe848
2 files changed
+9

No files matched your search

+3
View File
@@ -19,6 +19,9 @@ class SubTaskObserver
public function updating(SubTask $subTask)
{
// to prevent updating created_by field. this field cannot be updated once created.
$subTask->created_by = $subTask->getOriginal('created_by');
$subTask->tracked_time = $subTask->timesheets->sum('time');
}