From dbad8636efd35b25a11325e020255ab0ee3fe703 Mon Sep 17 00:00:00 2001 From: Elimig <33025815+Elimig@users.noreply.github.com> Date: Mon, 23 Oct 2017 13:48:45 +0200 Subject: [PATCH] update index.php I propose to the maintainer a variation to code at line number 97 to show only the statuses enabled in the pie chart. --- htdocs/projet/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php index 58f4a70ea4b..a1c68756181 100644 --- a/htdocs/projet/index.php +++ b/htdocs/projet/index.php @@ -94,6 +94,7 @@ else $listofoppstatus=array(); $listofopplabel=array(); $listofoppcode=array(); $sql = "SELECT cls.rowid, cls.code, cls.percent, cls.label"; $sql.= " FROM ".MAIN_DB_PREFIX."c_lead_status as cls"; +$sql.= " WHERE active=1"; $resql = $db->query($sql); if ( $resql ) {