Fix: Bypass if workflow module is enabled and if the trigger is compatible

This commit is contained in:
Regis Houssin 2010-04-22 15:52:28 +00:00
parent 5d38b90d04
commit 13d8d996e1

View File

@ -113,6 +113,9 @@ class Interfaces
$i=0;
if ($objMod)
{
// Bypass if workflow module is enabled and if the trigger is compatible
if ($conf->workflow->enabled && $objMod->workflow) continue;
$modules[$i] = $modName;
//dol_syslog("Interfaces::run_triggers Launch triggers for file '".$file."'",LOG_INFO);
$result=$objMod->run_trigger($action,$object,$user,$langs,$conf);