Fix: les apercus en PNG n'était pas supprimé si il y avait plusieurs pages
This commit is contained in:
parent
8179490359
commit
1ec055e1b5
@ -1926,6 +1926,8 @@ class Commande
|
|||||||
$file = $conf->commande->dir_output . "/" . $comref . "/" . $comref . ".pdf";
|
$file = $conf->commande->dir_output . "/" . $comref . "/" . $comref . ".pdf";
|
||||||
if (file_exists($file))
|
if (file_exists($file))
|
||||||
{
|
{
|
||||||
|
commande_delete_preview($this->db, $this->id);
|
||||||
|
|
||||||
if (!dol_delete_file($file))
|
if (!dol_delete_file($file))
|
||||||
{
|
{
|
||||||
$this->error=$langs->trans("ErrorCanNotDeleteFile",$file);
|
$this->error=$langs->trans("ErrorCanNotDeleteFile",$file);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user