Skip to content

Commit

Permalink
#22291: Static test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Apr 16, 2019
1 parent bf8e919 commit 0453184
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 <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,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 0453184

Please sign in to comment.