Skip to content

Commit

Permalink
Merge pull request #197 from jolelievre/fix-grid-count
Browse files Browse the repository at this point in the history
Fix grid count invalid with multiple languages
  • Loading branch information
matthieu-rolland committed Feb 28, 2024
2 parents a2b5662 + 2416c4e commit eb2a0dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>ps_linklist</name>
<displayName><![CDATA[Link List]]></displayName>
<version><![CDATA[6.0.6]]></version>
<version><![CDATA[6.0.7]]></version>
<description><![CDATA[Adds a block with several links.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[front_office_features]]></tab>
Expand Down
2 changes: 1 addition & 1 deletion ps_linklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function __construct()
{
$this->name = 'ps_linklist';
$this->author = 'PrestaShop';
$this->version = '6.0.6';
$this->version = '6.0.7';
$this->need_instance = 0;
$this->tab = 'front_office_features';

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Grid/Query/LinkBlockQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function getSearchQueryBuilder(SearchCriteriaInterface $searchCriteria =
public function getCountQueryBuilder(SearchCriteriaInterface $searchCriteria = null)
{
$qb = $this->getQueryBuilder($searchCriteria->getFilters());
$qb->select('COUNT(lb.id_link_block)');
$qb->select('COUNT(DISTINCT(lb.id_link_block))');

return $qb;
}
Expand Down

0 comments on commit eb2a0dd

Please sign in to comment.