Merge pull request #6113 from atm-maxime/3.8
Fix : delete product was not possible if batch stock
This commit is contained in:
commit
f49d332b73
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user