mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-30 04:43:21 +01:00
Fix: les apercus en PNG n'tait pas supprim si il y avait plusieurs pages
This commit is contained in:
@@ -1926,6 +1926,8 @@ class Commande
|
||||
$file = $conf->commande->dir_output . "/" . $comref . "/" . $comref . ".pdf";
|
||||
if (file_exists($file))
|
||||
{
|
||||
commande_delete_preview($this->db, $this->id);
|
||||
|
||||
if (!dol_delete_file($file))
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotDeleteFile",$file);
|
||||
|
||||
Reference in New Issue
Block a user