Merge pull request #12618 from frederic34/patch-6
Update product.class.php
This commit is contained in:
commit
e99d535e5c
@ -1201,7 +1201,7 @@ class Product extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
//We also check if it is a child product
|
//We also check if it is a child product
|
||||||
if (!$error && ($prodcomb->fetchByFkProductChild($id) > 0) && ($prodcomb->delete($user) < 0)) {
|
if (!$error && ($prodcomb->fetchByFkProductChild($this->id) > 0) && ($prodcomb->delete($user) < 0)) {
|
||||||
$error++;
|
$error++;
|
||||||
$this->errors[] = 'Error deleting child combination';
|
$this->errors[] = 'Error deleting child combination';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user