diff --git a/htdocs/index.php b/htdocs/index.php index c93065298d2..9022966a626 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -500,6 +500,14 @@ if (! empty($conf->expensereport->enabled) && $user->rights->expensereport->to_p $dashboardlines[] = $board->load_board($user,'topay'); } +$object=new stdClass(); +$parameters=array(); +$action=''; +$reshook=$hookmanager->executeHooks('addOpenElementsDashboardLine',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks +if ($reshook == 0) { + $dashboardlines = array_merge($dashboardlines, $hookmanager->resArray); +} + // Calculate total nb of late $totallate=$totaltodo=0; $var=true;