Remove hasbatch test

Intention is to remove all data linked to product_stock, which will be
deleted.
This commit is contained in:
fappels 2016-11-20 22:30:40 +01:00
parent 2e6b27f094
commit c09d09b869

View File

@ -926,7 +926,7 @@ class Product extends CommonObject
}
// Delete from product_batch on product delete
if (! $error && $this->hasbatch())
if (! $error)
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX.'product_batch';
$sql.= " WHERE fk_product_stock IN (";