Skip to content
Snippets Groups Projects
Commit 759915fe authored by Damien's avatar Damien
Browse files

FEAT #3480 Convert pdf for transmissions

parent b0d49308
No related branches found
No related tags found
No related merge requests found
...@@ -249,7 +249,7 @@ if (!empty($_REQUEST['action']) ...@@ -249,7 +249,7 @@ if (!empty($_REQUEST['action'])
fclose($inF); fclose($inF);
//Récupération de la version pdf du document //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( $pdfEncodedContent = str_replace(
' ', ' ',
'+', '+',
......
...@@ -39,6 +39,6 @@ $_SESSION['upfileTransmission'][$i]['upAttachment'] = true; ...@@ -39,6 +39,6 @@ $_SESSION['upfileTransmission'][$i]['upAttachment'] = true;
$_SESSION['m_admin']['templates']['applet'] = true; $_SESSION['m_admin']['templates']['applet'] = true;
//if ($_SESSION['modules_loaded']['attachments']['convertPdf'] == true){ if ($_SESSION['modules_loaded']['attachments']['convertPdf'] == true) {
// $_SESSION['upfile']['fileNamePdfOnTmp'] = $tmpFilePdfName; $_SESSION['upfileTransmission'][$i]['fileNamePdfOnTmp'] = $tmpFilePdfName;
//} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment