mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 22:11:36 +01:00
NEW fetch object by element for website account card
This commit is contained in:
@@ -12158,6 +12158,8 @@ function fetchObjectByElement($element_id, $element_type, $element_ref = '')
|
||||
// extrafield for a service, it is not supported and not found when editing the product/service card. So we must keep 'product' for extrafields
|
||||
// of service and we will return properties of a product.
|
||||
$ismodenabled = (isModEnabled('product') || isModEnabled('service'));
|
||||
} elseif ($element_prop['module'] == 'societeaccount') {
|
||||
$ismodenabled = isModEnabled('website') || isModEnabled('webportal');
|
||||
} else {
|
||||
$ismodenabled = isModEnabled($element_prop['module']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user