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
  • Loading branch information
sivaschenko authored Apr 23, 2019
2 parents 24dcc13 + 36dd64a commit 4ee30df
Showing 1 changed file with 14 additions and 4 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 <core@magentocommerce.com>
*/
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,4 +97,14 @@ public function addFieldToFilter($field, $condition = null)
}
return $this;
}

/**
* @inheritDoc
*/
public function getSelectCountSql()
{
$countSelect = parent::getSelectCountSql();
$countSelect->reset(\Zend\Db\Sql\Select::GROUP);
return $countSelect;
}
}

0 comments on commit 4ee30df

Please sign in to comment.