Browse Source

Merge pull request #4146 from fmarcet/3.6

FIX: Not delete a product when have customer price
Laurent Destailleur 9 years ago
parent
commit
b3ed99ddc1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/product/class/product.class.php

+ 1 - 1
htdocs/product/class/product.class.php

@@ -806,7 +806,7 @@ class Product extends CommonObject
 			}
 
 			// Delete all child tables
-			$elements = array('product_fournisseur_price','product_price','product_lang','categorie_product','product_stock');
+			$elements = array('product_fournisseur_price','product_price','product_lang','categorie_product','product_stock','product_customer_price');
 			foreach($elements as $table)
 			{
 				if (! $error)