Merge pull request #6113 from atm-maxime/3.8

Fix : delete product was not possible if batch stock
This commit is contained in:
Laurent Destailleur 2016-12-10 13:16:50 +01:00 committed by GitHub
commit f49d332b73

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)