Skip to content

Commit 52206a6

Browse files
committed
Merge branch 'MAGETWO-85781-2' into 2.1.13-PR-0.5
2 parents 9c2f3f9 + fa6510c commit 52206a6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/code/Magento/Rule/Model/Condition/Product/AbstractProduct.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ private function getCategoryIds($productId)
753753
{
754754
if (!isset($this->categoryIdList[$productId])) {
755755
$this->categoryIdList[$productId] = $this->_productResource->getConnection()->fetchCol(
756-
$this->getCategorySelect($productId, $this->category->getCategoryProductTable())
756+
$this->getCategorySelect($productId)
757757
);
758758
}
759759

@@ -764,13 +764,12 @@ private function getCategoryIds($productId)
764764
* Returns DB select.
765765
*
766766
* @param int $productId
767-
* @param string $tableName
768767
* @return Select
769768
*/
770-
private function getCategorySelect($productId, $tableName)
769+
private function getCategorySelect($productId)
771770
{
772771
return $this->_productResource->getConnection()->select()->from(
773-
$tableName,
772+
$this->category->getCategoryProductTable(),
774773
['category_id']
775774
)->where(
776775
'product_id = ?',

0 commit comments

Comments
 (0)