From 13d8d996e1c45d083f9ce113ee0e71696e95353a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 22 Apr 2010 15:52:28 +0000 Subject: [PATCH] Fix: Bypass if workflow module is enabled and if the trigger is compatible --- htdocs/core/interfaces.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/core/interfaces.class.php b/htdocs/core/interfaces.class.php index 6dfc7807b9e..342c6885ca9 100644 --- a/htdocs/core/interfaces.class.php +++ b/htdocs/core/interfaces.class.php @@ -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);