Update product.class.php

This commit is contained in:
Frédéric FRANCE 2019-12-03 16:46:50 +01:00 committed by GitHub
parent 6bc8a90680
commit 650c9c2e57
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 //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';
} }