From 39fba0cd115741e3cceb7d0763418e841f80d826 Mon Sep 17 00:00:00 2001 From: Michal Feher Date: Tue, 20 Feb 2024 16:02:52 +0100 Subject: [PATCH] no message --- be/app/Http/Controllers/SubTaskController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/be/app/Http/Controllers/SubTaskController.php b/be/app/Http/Controllers/SubTaskController.php index c286bb8..2671b44 100644 --- a/be/app/Http/Controllers/SubTaskController.php +++ b/be/app/Http/Controllers/SubTaskController.php @@ -258,7 +258,8 @@ class SubTaskController extends Controller } // syncnutie vykazu - $subtask->syncTimesheets($data['data']['timesheets']); + if (isset($data['data']['timesheets'])) + $subtask->syncTimesheets($data['data']['timesheets']); // syncnutie timeblocks $subtask->syncTimeblocks($data['data']['timeblocks']);