From d72b45d331e8bbb8e0cceee8870d214d10d55442 Mon Sep 17 00:00:00 2001 From: Abderrahim Darghal Belkacemi Date: Tue, 7 Jul 2026 11:06:09 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20a=C3=B1adir=20componente=20=C3=BAnico=20?= =?UTF-8?q?al=20nombre=20del=20PDF=20temporal=20de=20correo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lib/Export/MAILserviciosExport.php | 2 +- Lib/Export/PlantillasMAILserviciosExport.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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())) {