From 804a4b76e8571cfabe051f1615537d2c96129497 Mon Sep 17 00:00:00 2001 From: Michal Feher Date: Mon, 5 Feb 2024 16:36:09 +0100 Subject: [PATCH] no message --- be/app/Http/Controllers/SubTaskController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/be/app/Http/Controllers/SubTaskController.php b/be/app/Http/Controllers/SubTaskController.php index 5c19cd7..6dd68fb 100644 --- a/be/app/Http/Controllers/SubTaskController.php +++ b/be/app/Http/Controllers/SubTaskController.php @@ -184,6 +184,10 @@ class SubTaskController extends Controller if ($request->file('data')) { $subtask->attachments()->createMany($attachments); } + + // syncnutie timeblocks + if ($data['data']['user_id'] == $subtask->user_id) + $subtask->syncTimeblocks($data['data']['timeblocks']); } return response()->json([