From d6f2accad00fedb3889ad499c00ab10a1f81d61e Mon Sep 17 00:00:00 2001 From: Wade Womersley <155439365+wadedvsa@users.noreply.github.com> Date: Fri, 8 Mar 2024 17:11:44 +0000 Subject: [PATCH] feat: Show message attachments in the internal document list (dvsa/olcs-backend#100) --- .../Api/src/Domain/CommandHandler/Messaging/Message/Create.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/api/module/Api/src/Domain/CommandHandler/Messaging/Message/Create.php b/app/api/module/Api/src/Domain/CommandHandler/Messaging/Message/Create.php index b083fabb6b..14331adcd9 100644 --- a/app/api/module/Api/src/Domain/CommandHandler/Messaging/Message/Create.php +++ b/app/api/module/Api/src/Domain/CommandHandler/Messaging/Message/Create.php @@ -210,6 +210,8 @@ private function assignUploadsToMessage(MessagingMessage $message, string $corre } $doc->setMessagingMessage($message); + $doc->setLicence($message->getMessagingConversation()->getRelatedLicence()); + $doc->setApplication($message->getMessagingConversation()->getTask()->getApplication()); $docRepo->saveOnFlush($doc); }