No default contact available for products so adding contact not

possible. So revert option to avoid
This commit is contained in:
Laurent Destailleur 2026-03-23 13:40:13 +01:00
parent 4750c802b8
commit 15e1af2fda

View file

@ -172,9 +172,9 @@ function product_prepare_head($object)
$h++;
}
}
if (!getDolGlobalString('MAIN_DISABLE_CONTACTS_TAB')) {
if (!getDolGlobalString('MAIN_ENABLE_PRODUCTS_CONTACTS_TAB')) {
$objectsrc = $object;
if ($object->origin == 'product' && $object->origin_id > 0) {
if ($object->origin_type == 'product' && $object->origin_id > 0) {
$objectsrc = new Product($db);
$objectsrc->fetch($object->origin_id);
}