File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/code/Magento/Rule/Model/Condition/Product Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -753,7 +753,7 @@ private function getCategoryIds($productId)
753
753
{
754
754
if (!isset ($ this ->categoryIdList [$ productId ])) {
755
755
$ this ->categoryIdList [$ productId ] = $ this ->_productResource ->getConnection ()->fetchCol (
756
- $ this ->getCategorySelect ($ productId, $ this -> category -> getCategoryProductTable () )
756
+ $ this ->getCategorySelect ($ productId )
757
757
);
758
758
}
759
759
@@ -764,13 +764,12 @@ private function getCategoryIds($productId)
764
764
* Returns DB select.
765
765
*
766
766
* @param int $productId
767
- * @param string $tableName
768
767
* @return Select
769
768
*/
770
- private function getCategorySelect ($ productId, $ tableName )
769
+ private function getCategorySelect ($ productId )
771
770
{
772
771
return $ this ->_productResource ->getConnection ()->select ()->from (
773
- $ tableName ,
772
+ $ this -> category -> getCategoryProductTable () ,
774
773
['category_id ' ]
775
774
)->where (
776
775
'product_id = ? ' ,
You can’t perform that action at this time.
0 commit comments