From 469fcdb8bcc82c69681b2e33230c35204a8a6211 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 1 Aug 2024 10:59:11 +0300 Subject: [PATCH] invitation, set parent --- application/Espo/Modules/Crm/Business/Event/Invitations.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/Espo/Modules/Crm/Business/Event/Invitations.php b/application/Espo/Modules/Crm/Business/Event/Invitations.php index aed7b072c5..1c676f8972 100644 --- a/application/Espo/Modules/Crm/Business/Event/Invitations.php +++ b/application/Espo/Modules/Crm/Business/Event/Invitations.php @@ -137,7 +137,8 @@ class Invitations ->addToAddress($emailAddress) ->setSubject($subject) ->setBody($body) - ->setIsHtml(); + ->setIsHtml() + ->setParent(LinkParent::createFromEntity($entity)); $attachmentName = ucwords($this->language->translateLabel($entity->getEntityType(), 'scopeNames')) . '.ics';