diff --git a/htdocs/index.php b/htdocs/index.php index e56d9652c29..b7eebe24063 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -570,7 +570,7 @@ $dashboardgroup = array ( ), 'invoice_supplier' => array ( - 'groupName' => 'SupplierInvoices', + 'groupName' => 'BillsSuppliers', 'stats' => array ('invoice_supplier'), ), @@ -636,6 +636,14 @@ foreach($valid_dashboardlines as $board) } } +$openedDashBoardSize = 'info-box-sm'; // use sm by default +foreach ($dashboardgroup as $dashbordelement){ + if(is_array($dashbordelement['stats']) && count($dashbordelement['stats'])>2){ + $openedDashBoardSize = ''; // use default info box size : big + break; + } +} + $totalLateNumber = $totallate; $totallatePercentage = !empty($totaltodo) ? round($totallate / $totaltodo * 100, 2) : 0; if(!empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) $totallate = $totallatePercentage; @@ -681,7 +689,6 @@ if (!empty($valid_dashboardlines)) $boxwork.='