dolibarr-dev
[Top][All Lists]
Advanced

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

[Dolibarr-dev] correction product.class


From: jean
Subject: [Dolibarr-dev] correction product.class
Date: Fri, 28 Sep 2007 08:44:24 +0200
User-agent: IceDove 1.5.0.12 (X11/20070607)

modification pour créer le produit dans la bonne catégorie


--- 
/home/jean/projets/dolidev/sources/dolibarr_devref/dolibarr/htdocs/product.class.php
        2007-09-15 16:35:44.000000000 +0200
+++ /home/jean/projets/dolidev/sources/dolibarr/htdocs/product.class.php        
2007-09-19 23:18:07.000000000 +0200
@@ -20,7 +20,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
  * $Id: product.class.php,v 1.187 2007/09/15 14:35:44 eldy Exp $
- * $Source: /sources/dolibarr/dolibarr/htdocs/product.class.php,v $
+ * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product.class.php,v $
  */
 
 /**
@@ -220,8 +220,9 @@
                                                                {
                                                                        if 
($this->catid > 0)
                                                                        {
+                                                                               
require_once(DOL_DOCUMENT_ROOT ."/categories/categorie.class.php");             
                                                                
                                                                                
$cat = new Categorie ($this->db, $this->catid);
-                                                                               
$cat->add_product($this);
+                                                                               
$cat->add_type($this,"product");
                                                                        }
                                                                }
                                                                else


reply via email to

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