diff --git a/Lib/Export/MAILserviciosExport.php b/Lib/Export/MAILserviciosExport.php index 81a26ac..8dc7240 100644 --- a/Lib/Export/MAILserviciosExport.php +++ b/Lib/Export/MAILserviciosExport.php @@ -79,7 +79,7 @@ public function addModelPage($model, $columns, $title = ''): bool */ public function show(Response &$response) { - $fileName = $this->getFileName() . '_mail_' . time() . '.pdf'; + $fileName = $this->getFileName() . '_mail_' . time() . '_' . uniqid('', true) . '.pdf'; $filePath = FS_FOLDER . '/' . NewMail::ATTACHMENTS_TMP_PATH . $fileName; if (false === Tools::folderCheckOrCreate(FS_FOLDER . '/' . NewMail::ATTACHMENTS_TMP_PATH) || false === file_put_contents($filePath, $this->getDoc())) { diff --git a/Lib/Export/PlantillasMAILserviciosExport.php b/Lib/Export/PlantillasMAILserviciosExport.php index e345e8d..ef5ad4e 100644 --- a/Lib/Export/PlantillasMAILserviciosExport.php +++ b/Lib/Export/PlantillasMAILserviciosExport.php @@ -79,7 +79,7 @@ public function addModelPage($model, $columns, $title = ''): bool */ public function show(Response &$response) { - $fileName = $this->getFileName() . '_mail_' . time() . '.pdf'; + $fileName = $this->getFileName() . '_mail_' . time() . '_' . uniqid('', true) . '.pdf'; $filePath = FS_FOLDER . '/' . NewMail::ATTACHMENTS_TMP_PATH . $fileName; if (false === Tools::folderCheckOrCreate(FS_FOLDER . '/' . NewMail::ATTACHMENTS_TMP_PATH) || false === file_put_contents($filePath, $this->getDoc())) {