diff --git a/htdocs/core/class/dolgraph.class.php b/htdocs/core/class/dolgraph.class.php index 6511512d2ad..d9521505216 100644 --- a/htdocs/core/class/dolgraph.class.php +++ b/htdocs/core/class/dolgraph.class.php @@ -1246,7 +1246,6 @@ class DolGraph $color = 'rgb('.$newcolor[0].', '.$newcolor[1].', '.$newcolor[2].', 0.9)'; $bordercolor = 'rgb('.$newcolor[0].', '.$newcolor[1].', '.$newcolor[2].')'; - } else { // We do not use a 'group by' $color = 'rgb('.$this->datacolor[$i][0].', '.$this->datacolor[$i][1].', '.$this->datacolor[$i][2].', 0.9)'; $bordercolor = $color; diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index 958a5b296d7..829a3f9c72f 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -1348,7 +1348,8 @@ class FormOther * @param array $arrayofgroupby Array of groupby to fill * @return string HTML string component */ - public function selectGroupByField($object, $search_groupby, &$arrayofgroupby) { + public function selectGroupByField($object, $search_groupby, &$arrayofgroupby) + { global $langs, $extrafields, $form; $YYYY=substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1); @@ -1404,7 +1405,8 @@ class FormOther * @param array $arrayofxaxis Array of groupby to fill * @return string HTML string component */ - public function selectXAxisField($object, $search_xaxis, &$arrayofxaxis) { + public function selectXAxisField($object, $search_xaxis, &$arrayofxaxis) + { global $langs, $extrafields, $form; $YYYY=substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1);