From 253d02c16794ebf8807199a100748b3d98ee75f3 Mon Sep 17 00:00:00 2001 From: Michal Feher Date: Tue, 3 Feb 2026 13:20:22 +0100 Subject: [PATCH] no message --- be/app/Http/Controllers/SubTaskController.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/be/app/Http/Controllers/SubTaskController.php b/be/app/Http/Controllers/SubTaskController.php index aa09ede..c6f4f1d 100644 --- a/be/app/Http/Controllers/SubTaskController.php +++ b/be/app/Http/Controllers/SubTaskController.php @@ -514,10 +514,12 @@ class SubTaskController extends Controller // Skopírujeme attachmenty z pôvodného draftu foreach ($draft->attachments as $attachment) { $newSubtask->attachments()->create([ - 'name' => $attachment->name, + 'original_name' => $attachment->original_name, + 'disk_name' => $attachment->disk_name, 'path' => $attachment->path, - 'size' => $attachment->size, - 'type' => $attachment->type, + 'extension' => $attachment->extension, + 'content_type' => $attachment->content_type, + 'file_size' => $attachment->file_size, ]); }