From c5101f4bd79fdfbbc6ab508d511f6720ca3ca879 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Wed, 22 Jun 2022 13:45:06 +0200 Subject: [PATCH] FIX: Fiche inter graph by status on ficheinter Index page --- htdocs/fichinter/index.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/htdocs/fichinter/index.php b/htdocs/fichinter/index.php index 1e3242e4b7e..d4940ccb806 100644 --- a/htdocs/fichinter/index.php +++ b/htdocs/fichinter/index.php @@ -98,13 +98,11 @@ if ($resql) { // -1=Canceled, 0=Draft, 1=Validated, 2=Accepted/On process, 3=Closed (Sent/Received, billed or not) if ($num>0) { while ($row = $db->fetch_row($resql)) { - var_dump($row); - $bool = (!empty($row[2]) ? true : false); - if (!isset($vals[$row[1] . $bool])) { - $vals[$row[1] . $bool] = 0; + if (!isset($vals[$row[1]])) { + $vals[$row[1]] = 0; } - $vals[$row[1] . $bool] += $row[0]; + $vals[$row[1]] += $row[0]; $totalinprocess += $row[0]; $total += $row[0]; @@ -134,7 +132,7 @@ if ($resql) { $colorseries[$status] = $badgeStatus6; } } - var_dump($dataseries); + if ($conf->use_javascript_ajax) { print '';