mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
no message
This commit is contained in:
1 parent
38fb8afd11
commit
47a521a83d
2 files changed
+8
-9
No files matched your search
@@ -144,9 +144,9 @@ class SubTaskController extends Controller
|
||||
$subtask = $mastertask->subtasks()->create($request->all()['data']);
|
||||
|
||||
// syncnutie timeblocks
|
||||
if (!empty($data['data']['timeblocks'])) {
|
||||
//if (!empty($data['data']['timeblocks'])) {
|
||||
$subtask->syncTimeblocks($data['data']['timeblocks']);
|
||||
}
|
||||
//}
|
||||
|
||||
// upload attachmentu
|
||||
if ($request->file('data')) {
|
||||
@@ -184,15 +184,11 @@ class SubTaskController extends Controller
|
||||
$subtask->update($request->all()['data']);
|
||||
|
||||
// syncnutie vykazu
|
||||
if (!empty($data['data']['timesheets'])) {
|
||||
$subtask->syncTimesheets($data['data']['timesheets']);
|
||||
}
|
||||
$subtask->syncTimesheets($data['data']['timesheets']);
|
||||
|
||||
// syncnutie timeblocks
|
||||
if (!empty($data['data']['timeblocks'])) {
|
||||
$subtask->syncTimeblocks($data['data']['timeblocks']);
|
||||
}
|
||||
|
||||
$subtask->syncTimeblocks($data['data']['timeblocks']);
|
||||
|
||||
return response()->json([
|
||||
'message' => 'Subtask updated successfully',
|
||||
'subtask' => new SubTaskResource($subtask)
|
||||
|
||||
Reference in new issue
Block a user