Browse Source

Fix: Must add a context for cli execution of hooks

Laurent Destailleur 3 năm trước cách đây
mục cha
commit
0aa69e534e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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