2
0
forked from Wavyzz/dolibarr

Better detection if a module provide triggers

This commit is contained in:
Laurent Destailleur
2017-08-03 12:19:31 +02:00
parent 00a1893d93
commit f058fa1938
5 changed files with 24 additions and 22 deletions

View File

@@ -325,8 +325,9 @@ class Interfaces
{
$module=preg_replace('/^mod/i','',$reg[2]);
$constparam='MAIN_MODULE_'.strtoupper($module);
if (strtolower($reg[2]) == 'all') $disabledbymodule=0;
if (strtolower($module) == 'all') $disabledbymodule=0;
else if (empty($conf->global->$constparam)) $disabledbymodule=2;
$triggers[$j]['module']=strtolower($module);
}
// We set info of modules