Fix: les apercus en PNG n'tait pas supprim si il y avait plusieurs pages

This commit is contained in:
Regis Houssin
2006-06-09 14:58:53 +00:00
parent 4dbe1334fe
commit 7ae375b291
4 changed files with 66 additions and 27 deletions

View File

@@ -182,7 +182,7 @@ class Commande
$file = $conf->commande->dir_output . "/" . $comref . "/" . $comref . ".pdf";
if (file_exists($file))
{
commande_delete_preview($this->db, $this->id);
commande_delete_preview($this->db, $this->id, $this->ref);
if (!dol_delete_file($file))
{