Use function getFkProductParentByFkProductChild
This commit is contained in:
parent
925a1475a1
commit
0f1c3643d7
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user