forked from Wavyzz/dolibarr
Fix: les apercus en PNG n'tait pas supprim si il y avait plusieurs pages
This commit is contained in:
@@ -211,7 +211,12 @@ function commande_pdf_create($db, $id, $modele='', $outputlangs='')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
\brief Supprime l'image de pr<70>visualitation, pour le cas de r<>g<EFBFBD>n<EFBFBD>ration de commande
|
||||
\param db objet base de donn<6E>e
|
||||
\param commandeid id de la commande <20> effacer
|
||||
\param commanderef r<>f<EFBFBD>rence de la commande si besoin
|
||||
*/
|
||||
function commande_delete_preview($db, $commandeid, $commanderef='')
|
||||
{
|
||||
global $langs,$conf;
|
||||
@@ -222,9 +227,7 @@ function commande_delete_preview($db, $commandeid, $commanderef='')
|
||||
$com->fetch($commandeid);
|
||||
$commanderef = $com->ref;
|
||||
}
|
||||
//$client = new Societe($db);
|
||||
//$client->fetch($com->soc_id);
|
||||
|
||||
|
||||
if ($conf->commande->dir_output)
|
||||
{
|
||||
$comref = sanitize_string($commanderef);
|
||||
|
||||
Reference in New Issue
Block a user