Fix for compatibility
This commit is contained in:
parent
03798025b9
commit
bf954e9cd7
1 changed files with 10 additions and 0 deletions
|
|
@ -261,6 +261,16 @@ function isModEnabled($module)
|
|||
$arrayconv['supplier_order'] = 'fournisseur';
|
||||
$arrayconv['supplier_invoice'] = 'fournisseur';
|
||||
}
|
||||
// Special case.
|
||||
// @TODO Replace isModEnabled('delivery_note') with
|
||||
// isModEnabled('shipping') && getDolGlobalString('MAIN_SUBMODULE_EXPEDITION')
|
||||
if ($module == 'delivery_note') {
|
||||
if (!getDolGlobalString('MAIN_SUBMODULE_EXPEDITION')) {
|
||||
return false;
|
||||
} else {
|
||||
$module = 'shipping';
|
||||
}
|
||||
}
|
||||
|
||||
$module_alt = $module;
|
||||
if (!empty($arrayconv[$module])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue