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
91d8758de1
commit
bb5124d1a4
1 file changed
+8
-1
@@ -178,7 +178,7 @@ class SubTaskController extends Controller
|
||||
foreach ( $request->all()['data']['employees'] as $key => $employee ) {
|
||||
if (!isset($data['data']['employees'][$key]['timeblocks']) || $data['data']['employees'][$key]['timeblocks'] == null)
|
||||
continue;
|
||||
|
||||
|
||||
if ($data['data']['employees'][$key]['user_id'] == $employee['id'])
|
||||
$subtasks[$key]->syncTimeblocks($data['data']['employees'][$key]['timeblocks']);
|
||||
}
|
||||
@@ -250,6 +250,13 @@ class SubTaskController extends Controller
|
||||
|
||||
$subtask->update($request->all()['data']);
|
||||
|
||||
// upload attachmentu
|
||||
if ($request->file('data')) {
|
||||
$attachments = Attachment::uploadAttachmentsToS3($request->file('data')['files'], $subtask->mastertask);
|
||||
|
||||
$subtask->attachments()->createMany($attachments);
|
||||
}
|
||||
|
||||
// syncnutie vykazu
|
||||
$subtask->syncTimesheets($data['data']['timesheets']);
|
||||
|
||||
|
||||
Reference in new issue
Block a user