From 70f9e7881bb4b26e09c84edc0ce359ba6551e6c9 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Tue, 3 Jan 2023 19:46:05 +0100 Subject: [PATCH] Fix error when no category selected empty pages when searching with no category of producted selected --- htdocs/compta/stats/cabyprodserv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/stats/cabyprodserv.php b/htdocs/compta/stats/cabyprodserv.php index b8f6327ccd5..ca8b35e739d 100644 --- a/htdocs/compta/stats/cabyprodserv.php +++ b/htdocs/compta/stats/cabyprodserv.php @@ -323,7 +323,7 @@ if ($modecompta == 'CREANCES-DETTES') { } if ($selected_cat === -2) { // Without any category $sql .= " AND cp.fk_product is null"; - } elseif ($selected_cat) { // Into a specific category + } elseif ($selected_cat > 0) { // Into a specific category if ($subcat) { $TListOfCats = $categorie->get_full_arbo('product', $selected_cat, 1);