Skip to content

Commit bdc5b61

Browse files
ENGCOM-4834: [Backport] Fixed #22223 Missing/Wrong data display on downloadable report table … #22523
- Merge Pull Request #22523 from shikhamis11/magento2:2.2-develop-PR-port-22291 - Merged commits: 1. 0d936c8 2. 35ca37e 3. a78bb8e
2 parents 4992141 + a78bb8e commit bdc5b61

File tree

1 file changed

+14
-4
lines changed
  • app/code/Magento/Reports/Model/ResourceModel/Product/Downloads

1 file changed

+14
-4
lines changed

app/code/Magento/Reports/Model/ResourceModel/Product/Downloads/Collection.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
namespace Magento\Reports\Model\ResourceModel\Product\Downloads;
8+
79
/**
810
* Product Downloads Report collection
911
*
1012
* @author Magento Core Team <[email protected]>
11-
*/
12-
namespace Magento\Reports\Model\ResourceModel\Product\Downloads;
13-
14-
/**
13+
*
1514
* @api
1615
* @since 100.0.2
16+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1717
*/
1818
class Collection extends \Magento\Catalog\Model\ResourceModel\Product\Collection
1919
{
@@ -97,4 +97,14 @@ public function addFieldToFilter($field, $condition = null)
9797
}
9898
return $this;
9999
}
100+
101+
/**
102+
* @inheritDoc
103+
*/
104+
public function getSelectCountSql()
105+
{
106+
$countSelect = parent::getSelectCountSql();
107+
$countSelect->reset(\Zend\Db\Sql\Select::GROUP);
108+
return $countSelect;
109+
}
100110
}

0 commit comments

Comments
 (0)