Merge pull request #20506 from ATM-Consulting/FIX_missing_hook_for_statistics_box

FIX missing call to executeHooks()
This commit is contained in:
Laurent Destailleur 2022-04-01 13:11:35 +02:00 committed by GitHub
commit fa9fc1c8d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,6 +79,9 @@ class box_dolibarr_state_board extends ModeleBoxes
if (empty($user->socid) && empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS)) {
$hookmanager = new HookManager($this->db);
$hookmanager->initHooks(array('index'));
$object = new stdClass;
$action = '';
$hookmanager->executeHooks('addStatisticLine', array(), $object, $action);
$boxstatItems = array();
$boxstatFromHook = '';
$boxstatFromHook = $hookmanager->resPrint;