Remove hasbatch test
Intention is to remove all data linked to product_stock, which will be deleted.
This commit is contained in:
parent
2e6b27f094
commit
c09d09b869
@ -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 (";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user