dev/core#2864 fix for rc breakage in pdf-letter-to-word
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 23 Oct 2021 04:08:32 +0000 (17:08 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 25 Oct 2021 19:46:02 +0000 (08:46 +1300)
CRM/Contact/Form/Task/PDFTrait.php

index 8a3146c8d8b949053926096e6e39810bbcb40101..1adcc4d64207a1f24a34b42a508d5f44e5aef969 100644 (file)
@@ -270,7 +270,7 @@ trait CRM_Contact_Form_Task_PDFTrait {
       CRM_Utils_PDF_Document::printDocuments($html, $fileName, $type, $zip);
     }
     else {
-      CRM_Utils_PDF_Document::html2doc($html, $fileName, $formValues);
+      CRM_Utils_PDF_Document::html2doc($html, $fileName . '.' . $this->getSubmittedValue('document_type'), $formValues);
     }
 
     if ($tee) {