Skip to content

Commit 44b0675

Browse files
authored
Merge pull request #32 from thelia-modules/fix/empty-row-index
fix: add group by in index product for empty rows
2 parents 136d332 + c85c040 commit 44b0675

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Config/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<language>en_US</language>
1414
<language>fr_FR</language>
1515
</languages>
16-
<version>3.1.1</version>
16+
<version>3.1.2</version>
1717
<authors>
1818
<author>
1919
<name>Nicolas Barbey</name>

Index/Product.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ public function buildSqlQuery(int $itemId = null, string $locale = null): string
5151

5252
if ($itemId) {
5353
$query .= ' AND product.id=' . $itemId;
54-
} else {
55-
$query .= ' GROUP BY product.id';
5654
}
55+
$query .= ' GROUP BY product.id';
5756

5857
return $query;
5958
}

0 commit comments

Comments
 (0)