Fix : delete product was not possible if batch stock

This commit is contained in:
Maxime Kohlhaas 2016-12-10 13:05:46 +01:00
parent f516660c0f
commit 97e21cb775

View File

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