-
-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore: Check for DS
/ PS
already set
#4484
base: main
Are you sure you want to change the base?
Conversation
f5a7b73
to
8894fe9
Compare
Quality Gate passedIssues Measures |
|
||
|
||
/** | ||
* Get SQL for get record count | ||
* | ||
* @return Varien_Db_Select | ||
* @see Mage_Reports_Model_Resource_Report_Product_Viewed_Collection | ||
* @see Mage_Sales_Model_Resource_Report_Bestsellers_Collection | ||
*/ | ||
public function getSelectCountSql() | ||
{ | ||
$this->_renderFilters(); | ||
$select = clone $this->getSelect(); | ||
$select->reset(Zend_Db_Select::ORDER); | ||
return $this->getConnection()->select()->from($select, 'COUNT(*)'); | ||
} | ||
|
||
/** | ||
* Set ids for store restrictions | ||
* | ||
* @param array $storeIds | ||
* @return $this | ||
* @see Mage_Reports_Model_Resource_Report_Product_Viewed_Collection | ||
* @see Mage_Sales_Model_Resource_Report_Bestsellers_Collection | ||
*/ | ||
public function addStoreRestrictions($storeIds) | ||
{ | ||
if (!is_array($storeIds)) { | ||
$storeIds = [$storeIds]; | ||
} | ||
$currentStoreIds = $this->_storesIds; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be in a separate PR for easier review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason i dont see that comment/review in history?
It moved 1:1 duplicated methods to its parent abtract class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its one commit cb3fbba
Description (*)
@justinbeaty, only to remove some changes from #4411, to make review easier.