Merge pull request #12618 from frederic34/patch-6

Update product.class.php
This commit is contained in:
Laurent Destailleur 2019-12-03 19:11:06 +01:00 committed by GitHub
commit e99d535e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1201,7 +1201,7 @@ class Product extends CommonObject
}
//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++;
$this->errors[] = 'Error deleting child combination';
}