Skip to content

Commit b881a5d

Browse files
author
Shikha Mishra
authored
Fixed magento#22223 Missing/Wrong data display on downloadable report table reports>downloads in BO
1 parent 9cdc1b7 commit b881a5d

File tree

1 file changed

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

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,15 @@ 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+
$countSelect = parent::getSelectCountSql();
108+
$countSelect->reset(\Zend\Db\Sql\Select::GROUP);
109+
return $countSelect;
110+
}
100111
}

0 commit comments

Comments
 (0)