Fix: Bypass if workflow module is enabled and if the trigger is compatible
This commit is contained in:
parent
5d38b90d04
commit
13d8d996e1
@ -113,6 +113,9 @@ class Interfaces
|
|||||||
$i=0;
|
$i=0;
|
||||||
if ($objMod)
|
if ($objMod)
|
||||||
{
|
{
|
||||||
|
// Bypass if workflow module is enabled and if the trigger is compatible
|
||||||
|
if ($conf->workflow->enabled && $objMod->workflow) continue;
|
||||||
|
|
||||||
$modules[$i] = $modName;
|
$modules[$i] = $modName;
|
||||||
//dol_syslog("Interfaces::run_triggers Launch triggers for file '".$file."'",LOG_INFO);
|
//dol_syslog("Interfaces::run_triggers Launch triggers for file '".$file."'",LOG_INFO);
|
||||||
$result=$objMod->run_trigger($action,$object,$user,$langs,$conf);
|
$result=$objMod->run_trigger($action,$object,$user,$langs,$conf);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user