Use function getFkProductParentByFkProductChild

This commit is contained in:
Cédric 2020-09-04 11:21:29 +02:00 committed by GitHub
parent 925a1475a1
commit 0f1c3643d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ function product_prepare_head($object)
$prodcomb = new ProductCombination($db);
if ($prodcomb->fetchByFkProductChild($object->id) == -1)
if ($prodcomb->getFkProductParentByFkProductChild($object->id) == -1)
{
$head[$h][0] = DOL_URL_ROOT."/variants/combinations.php?id=".$object->id;
$head[$h][1] = $langs->trans('ProductCombinations');