fix trigger when module not enabled
This commit is contained in:
parent
11cb9c0d81
commit
7a76a3f497
@ -97,7 +97,7 @@ class InterfaceMyModuleTriggers extends DolibarrTriggers
|
||||
*/
|
||||
public function runTrigger($action, $object, User $user, Translate $langs, Conf $conf)
|
||||
{
|
||||
if (!empty($conf->mymodule->enabled)) return 0; // Module not active, we do nothing
|
||||
if (empty($conf->mymodule->enabled)) return 0; // Module not active, we do nothing
|
||||
|
||||
// Put here code you want to execute when a Dolibarr business events occurs.
|
||||
// Data and type of action are stored into $object and $action
|
||||
|
||||
Loading…
Reference in New Issue
Block a user