Commit 8f32082c authored by Jean-Laurent DUZANT's avatar Jean-Laurent DUZANT
Browse files

FIX #19325 TIME 0:30 delete all tmp email_*.pdf, attachment_*.pdf,...

FIX #19325 TIME 0:30 delete all tmp email_*.pdf, attachment_*.pdf, summarySheet_*.pdf, convertedAr_*.pdf and listNotes_*.pdf after merged is complete - Jean-Laurent
parent ac83f200
......@@ -586,6 +586,12 @@ class FolderPrintController
if (!file_exists($filePathOnTmp)) {
return $response->withStatus(500)->withJson(['errors' => 'Merged PDF file not created']);
}
// delete all tmp email_*.pdf, attachment_*.pdf, summarySheet_*.pdf, convertedAr_*.pdf and listNotes_*.pdf after merged is complete
foreach ($documentPaths as $documentPath) {
unlink($documentPath);
}
$folderPrintPaths[] = $filePathOnTmp;
}
}
......@@ -1003,12 +1009,7 @@ class FolderPrintController
</tr>
</tbody>
</table><br>";
$css_ = "<style>
table, thead, tbody, tr, td, th {
page-break-inside: avoid !important;
}
</style>";
$emailMeta_emailDataBody = $css_.$emailMeta.$email['body'];
$emailMeta_emailDataBody = $emailMeta.$email['body'];
$tmpDir = CoreConfigModel::getTmpPath();
$filePathInTmpNoExtension = $tmpDir . 'email_' . $email['id'] . '_' . $GLOBALS['id'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment