From 1ec055e1b59787cf53ca6a410507bcfc821109bb Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 9 Jun 2006 12:45:52 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20les=20apercus=20en=20PNG=20n'=E9tait=20p?= =?UTF-8?q?as=20supprim=E9=20si=20il=20y=20avait=20plusieurs=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/commande.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 348207d32f2..5ca510ed1c5 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -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);