diff --git a/htdocs/product/stats/card.php b/htdocs/product/stats/card.php index f364d4c84e9..0c4227fa693 100644 --- a/htdocs/product/stats/card.php +++ b/htdocs/product/stats/card.php @@ -223,6 +223,7 @@ if ($result || !($id > 0)) { } else { print ''; } + print ''; // Year print ''.$langs->trans("Year").''; @@ -258,6 +259,9 @@ if ($result || !($id > 0)) { if ($socid > 0) { $param .= '&socid='.((int) $socid); } + if (!empty($search_categ)) { + $param .= '&search_categ='.((int) $search_categ); + } // Choice of stats mode (byunit or bynumber)