diff --git a/content_management/trunk/applet_controller.php b/content_management/trunk/applet_controller.php index 8f193678ba4e1572a3b705306569ebfb475c386c..1f3adb739bcb71b1a1958631366e18ab2b7f715e 100644 --- a/content_management/trunk/applet_controller.php +++ b/content_management/trunk/applet_controller.php @@ -249,7 +249,7 @@ if (!empty($_REQUEST['action']) fclose($inF); //Récupération de la version pdf du document - if ($_SESSION['modules_loaded']['attachments']['convertPdf'] == "true" && ($objectType == 'attachmentFromTemplate' || $objectType == 'attachment' || $objectType == 'attachmentUpVersion' || $objectType == 'attachmentVersion' || $objectType == 'outgoingMail' || $objectType == 'resourceEdit') && isset($_REQUEST['pdfContent'])){ + if ($_SESSION['modules_loaded']['attachments']['convertPdf'] == "true" && ($objectType == 'attachmentFromTemplate' || $objectType == 'attachment' || $objectType == 'attachmentUpVersion' || $objectType == 'attachmentVersion' || $objectType == 'outgoingMail' || $objectType == 'resourceEdit' || $objectType == 'transmission') && isset($_REQUEST['pdfContent'])){ $pdfEncodedContent = str_replace( ' ', '+', diff --git a/content_management/trunk/save_transmission_from_cm.php b/content_management/trunk/save_transmission_from_cm.php index 212e50b4aceeb692606e70582c11604128fd9b1c..6ab3887d7226a2e898b5008dbb72df7fea481700 100644 --- a/content_management/trunk/save_transmission_from_cm.php +++ b/content_management/trunk/save_transmission_from_cm.php @@ -39,6 +39,6 @@ $_SESSION['upfileTransmission'][$i]['upAttachment'] = true; $_SESSION['m_admin']['templates']['applet'] = true; -//if ($_SESSION['modules_loaded']['attachments']['convertPdf'] == true){ -// $_SESSION['upfile']['fileNamePdfOnTmp'] = $tmpFilePdfName; -//} \ No newline at end of file +if ($_SESSION['modules_loaded']['attachments']['convertPdf'] == true) { + $_SESSION['upfileTransmission'][$i]['fileNamePdfOnTmp'] = $tmpFilePdfName; +}