Rename event invitiation attachments to match the event type

This commit is contained in:
Alasdair Campbell
2014-11-04 23:02:49 +00:00
parent 0299f30055
commit fd39508bc5
@@ -107,9 +107,10 @@ class Invitations
$email->set('isHtml', true);
$this->getEntityManager()->saveEntity($email);
$attachmentName = ucwords($this->language->translate($entity->getEntityName(), 'scopeNames')).'.ics';
$attachment = $this->getEntityManager()->getEntity('Attachment');
$attachment->set(array(
'name' => 'event.ics',
'name' => $attachmentName,
'type' => 'text/calendar',
'contents' => $this->getIscContents($entity),
));