Skip to content

Commit 94d6525

Browse files
authored
Merge pull request #1213 from vishal-singh-webkul/gli-2266
Fixed: Wrong value of Gender percentage in Customers KPI in the AdminCustomerController in the back-office
2 parents 6e518a2 + ca0500d commit 94d6525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/admin/AdminStatsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public static function getCustomerMainGender()
366366
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
367367
FROM `'._DB_PREFIX_.'customer` c
368368
LEFT JOIN `'._DB_PREFIX_.'gender` g ON c.id_gender = g.id_gender
369-
WHERE c.active = 1 AND c.deleted = 0 '.Shop::addSqlRestriction());
369+
WHERE 1 AND c.deleted = 0 '.Shop::addSqlRestriction());
370370

371371
if (!$row['total']) {
372372
return false;

0 commit comments

Comments
 (0)