Skip to content

Commit 18d1853

Browse files
ENGCOM-4747: Fixed #22223 Missing/Wrong data display on downloadable report table … #22291
- Merge Pull Request #22291 from opencommerce/magento2:2.3devPr22223 - Merged commits: 1. b881a5d 2. bf8e919
2 parents 810780b + bf8e919 commit 18d1853

File tree

1 file changed

+12
-0
lines changed
  • app/code/Magento/Reports/Model/ResourceModel/Product/Downloads

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,16 @@ public function addFieldToFilter($field, $condition = null)
9797
}
9898
return $this;
9999
}
100+
101+
/**
102+
* Get SQL for get record count without left JOINs and group
103+
*
104+
* @return \Magento\Framework\DB\Select
105+
*/
106+
public function getSelectCountSql()
107+
{
108+
$countSelect = parent::getSelectCountSql();
109+
$countSelect->reset(\Zend\Db\Sql\Select::GROUP);
110+
return $countSelect;
111+
}
100112
}

0 commit comments

Comments
 (0)