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(),