FIX display variant card

This commit is contained in:
ptibogxiv 2020-10-27 23:07:05 +01:00 committed by GitHub
parent f7c90d7e90
commit 6fd996381e
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->fetchByFkProductChild($object->id) <= 0)
{
$head[$h][0] = DOL_URL_ROOT."/variants/combinations.php?id=".$object->id;
$head[$h][1] = $langs->trans('ProductCombinations');