File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/Catalog/Model/ResourceModel Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -486,14 +486,14 @@ public function getProductsPosition($category)
486
486
$ this ->getCategoryProductTable (),
487
487
['product_id ' , 'position ' ]
488
488
)->where (
489
- 'catalog_category_product.category_id = ? ' ,
489
+ "{ $ this -> getTable ( 'catalog_category_product ' )} .category_id = ? " ,
490
490
$ category ->getId ()
491
491
);
492
492
$ websiteId = $ category ->getStore ()->getWebsiteId ();
493
493
if ($ websiteId ) {
494
494
$ select ->join (
495
495
['product_website ' => $ this ->getTable ('catalog_product_website ' )],
496
- ' product_website.product_id = catalog_category_product.product_id ' ,
496
+ " product_website.product_id = { $ this -> getTable ( ' catalog_category_product ' )} .product_id " ,
497
497
[]
498
498
)->where (
499
499
'product_website.website_id = ? ' ,
Original file line number Diff line number Diff line change @@ -699,14 +699,14 @@ public function getProductsPosition($category)
699
699
$ this ->getTable ('catalog_category_product ' ),
700
700
['product_id ' , 'position ' ]
701
701
)->where (
702
- 'catalog_category_product.category_id = ? ' ,
702
+ "{ $ this -> getTable ( 'catalog_category_product ' )} .category_id = ? " ,
703
703
$ category ->getId ()
704
704
);
705
705
$ websiteId = $ category ->getStore ()->getWebsiteId ();
706
706
if ($ websiteId ) {
707
707
$ select ->join (
708
708
['product_website ' => $ this ->getTable ('catalog_product_website ' )],
709
- ' product_website.product_id = catalog_category_product.product_id ' ,
709
+ " product_website.product_id = { $ this -> getTable ( ' catalog_category_product ' )} .product_id " ,
710
710
[]
711
711
)->where (
712
712
'product_website.website_id = ? ' ,
You can’t perform that action at this time.
0 commit comments