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';