From ca0500dbd2c65dfd6fb4d6a4f64286d2db3856a2 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 17 Sep 2024 18:51:57 +0530 Subject: [PATCH] Fixed: wrong customers gender percentage in the admin customer KPI --- controllers/admin/AdminStatsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminStatsController.php b/controllers/admin/AdminStatsController.php index 325499f8a..800242953 100644 --- a/controllers/admin/AdminStatsController.php +++ b/controllers/admin/AdminStatsController.php @@ -362,7 +362,7 @@ class AdminStatsControllerCore extends AdminStatsTabController SELECT SUM(IF(c.id_gender IS NOT NULL, 1, 0)) as total, SUM(IF(type = 0, 1, 0)) as male, SUM(IF(type = 1, 1, 0)) as female, SUM(IF(type = 2, 1, 0)) as neutral FROM `'._DB_PREFIX_.'customer` c LEFT JOIN `'._DB_PREFIX_.'gender` g ON c.id_gender = g.id_gender - WHERE c.active = 1 AND c.deleted = 0 '.Shop::addSqlRestriction()); + WHERE 1 AND c.deleted = 0 '.Shop::addSqlRestriction()); if (!$row['total']) { return false;