Skip to content

Commit

Permalink
ENGCOM-4747: Fixed #22223 Missing/Wrong data display on downloadable …
Browse files Browse the repository at this point in the history
…report table … #22291

 - Merge Pull Request #22291 from opencommerce/magento2:2.3devPr22223
 - Merged commits:
   1. b881a5d
   2. bf8e919
   3. 0453184
  • Loading branch information
magento-engcom-team committed Apr 16, 2019
2 parents 18d1853 + 0453184 commit 6f0ffda
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
* See COPYING.txt for license details.
*/

namespace Magento\Reports\Model\ResourceModel\Product\Downloads;

/**
* Product Downloads Report collection
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Reports\Model\ResourceModel\Product\Downloads;

/**
*
* @api
* @since 100.0.2
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
*/
class Collection extends \Magento\Catalog\Model\ResourceModel\Product\Collection
{
Expand Down Expand Up @@ -97,13 +97,11 @@ public function addFieldToFilter($field, $condition = null)
}
return $this;
}

/**
* Get SQL for get record count without left JOINs and group
*
* @return \Magento\Framework\DB\Select
* @inheritDoc
*/
public function getSelectCountSql()
public function getSelectCountSql()
{
$countSelect = parent::getSelectCountSql();
$countSelect->reset(\Zend\Db\Sql\Select::GROUP);
Expand Down

0 comments on commit 6f0ffda

Please sign in to comment.