diff --git a/htdocs/product/stats/card.php b/htdocs/product/stats/card.php index c8b34a1182d..b95613c0e68 100644 --- a/htdocs/product/stats/card.php +++ b/htdocs/product/stats/card.php @@ -350,9 +350,9 @@ if ($result || empty($id)) dol_print_error($db, 'Error for calculating graph on key='.$key.' - '.$object->error); } } - } - $mesg = $langs->trans("ChartGenerated"); + //setEventMessages($langs->trans("ChartGenerated"), null, 'mesgs'); + } } // Show graphs @@ -390,7 +390,7 @@ if ($result || empty($id)) { $dategenerated=($mesg?''.$mesg.'':$langs->trans("ChartNotGenerated")); } - $linktoregenerate='id).((string) $type != ''?'&type='.$type:'').'&action=recalcul&mode='.$mode.'&search_year='.$search_year.'&search_categ='.$search_categ.'">'.img_picto($langs->trans("ReCalculate").' ('.$dategenerated.')', 'refresh').''; + $linktoregenerate='id).((string) $type != ''?'&type='.$type:'').'&action=recalcul&mode='.$mode.'&search_year='.$search_year.'&search_categ='.$search_categ.'">'.img_picto($langs->trans("ReCalculate").' ('.$dategenerated.')', 'refresh').''; // Show graph print '';