dolibarr-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php


From: Regis Houssin
Subject: [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php
Date: Fri, 09 Jun 2006 12:45:53 +0000

CVSROOT:        /cvsroot/dolibarr
Module name:    dolibarr
Changes by:     Regis Houssin <hregis>  06/06/09 12:45:53

Modified files:
        htdocs/commande: commande.class.php 

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

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/commande/commande.class.php?cvsroot=dolibarr&r1=1.151&r2=1.152

Patches:
Index: commande.class.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/commande/commande.class.php,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -b -r1.151 -r1.152
--- commande.class.php  9 Jun 2006 12:40:33 -0000       1.151
+++ commande.class.php  9 Jun 2006 12:45:52 -0000       1.152
@@ -18,7 +18,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: commande.class.php,v 1.151 2006/06/09 12:40:33 hregis Exp $
+ * $Id: commande.class.php,v 1.152 2006/06/09 12:45:52 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/commande/commande.class.php,v $
  */
  
@@ -26,7 +26,7 @@
         \file       htdocs/commande/commande.class.php
         \ingroup    commande
         \brief      Fichier des classes de commandes
-        \version    $Revision: 1.151 $
+        \version    $Revision: 1.152 $
 */
 
 require_once(DOL_DOCUMENT_ROOT."/product.class.php");
@@ -1926,6 +1926,8 @@
                                $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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]