Browse Source

Fix: Must add a context for cli execution of hooks

Laurent Destailleur 3 years ago
parent
commit
0aa69e534e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scripts/cron/cron_run_jobs.php

+ 2 - 0
scripts/cron/cron_run_jobs.php

@@ -81,6 +81,8 @@ $userlogin = $argv[2];
 $version = DOL_VERSION;
 $error = 0;
 
+$hookmanager->initHooks(array('cli'));
+
 
 /*
  * Main