Merge pull request #5695 from fappels/4.0_delete_product_lot

FIX Delete product_lot data when product deleted
This commit is contained in:
Laurent Destailleur 2016-09-02 18:44:21 +02:00 committed by GitHub
commit f4ada7f18e

View File

@ -926,7 +926,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_lot');
foreach($elements as $table)
{
if (! $error)