From 0d55fe89c357b1eb1ef1ea5fa585bbf82dc0223f Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Fri, 1 Apr 2022 11:12:08 +0200 Subject: [PATCH] Fix for issue 3034 Fix for issue 3034 --- CRM/Contact/Form/Task/PDFTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Task/PDFTrait.php b/CRM/Contact/Form/Task/PDFTrait.php index b5cc18541d9c..61e4faad36d9 100644 --- a/CRM/Contact/Form/Task/PDFTrait.php +++ b/CRM/Contact/Form/Task/PDFTrait.php @@ -283,7 +283,7 @@ public function postProcess(): void { civicrm_api3('Attachment', 'create', [ 'entity_table' => 'civicrm_activity', 'entity_id' => $activityId, - 'name' => $fileName, + 'name' => $fileName . '.' . $type, 'mime_type' => $mimeType, 'options' => [ 'move-file' => $tee->getFileName(),