Fix for issue 3034
authorJaap Jansma <jaap.jansma@civicoop.org>
Fri, 1 Apr 2022 09:12:08 +0000 (11:12 +0200)
committerJaap Jansma <jaap.jansma@civicoop.org>
Mon, 4 Apr 2022 12:18:20 +0000 (14:18 +0200)
Fix for issue 3034

CRM/Contact/Form/Task/PDFTrait.php

index b5cc18541d9c580df537495b9ae0a12be6008596..61e4faad36d9b6e1f21c648314e5ec8929caad82 100644 (file)
@@ -283,7 +283,7 @@ trait CRM_Contact_Form_Task_PDFTrait {
         civicrm_api3('Attachment', 'create', [
           'entity_table' => 'civicrm_activity',
           'entity_id' => $activityId,
-          'name' => $fileName,
+          'name' => $fileName . '.' . $type,
           'mime_type' => $mimeType,
           'options' => [
             'move-file' => $tee->getFileName(),