Fix if SOCIETE_DISABLE_PARENTCOMPANY on, we must not show_subsidiaries
This commit is contained in:
parent
36b5195da9
commit
def8b1c7a6
@ -3144,7 +3144,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
||||
}
|
||||
|
||||
// Subsidiaries list
|
||||
if (empty($conf->global->SOCIETE_DISABLE_SUBSIDIARIES)) {
|
||||
if (!empty($conf->global->SOCIETE_DISABLE_PARENTCOMPANY) && empty($conf->global->SOCIETE_DISABLE_SHOW_SUBSIDIARIES)) {
|
||||
$result = show_subsidiaries($conf, $langs, $db, $object);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user