No default contact available for products so adding contact not
possible. So revert option to avoid
This commit is contained in:
parent
4750c802b8
commit
15e1af2fda
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue