We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2af16 commit aac4f42Copy full SHA for aac4f42
app/code/Magento/Catalog/Model/ResourceModel/Product/Link/Product/Collection.php
@@ -444,7 +444,7 @@ private function joinProductsToLinks()
444
if ($this->_hasLinkFilter) {
445
$linkField = $this->getMetadataPool()->getMetadata(ProductInterface::class)->getLinkField();
446
$this->getSelect()
447
- ->join(['cpe' => 'catalog_product_entity'], "links.product_id = cpe.$linkField", []);
+ ->join(['cpe' => $this->getMainTable()], "links.product_id = cpe.$linkField", []);
448
}
449
450
0 commit comments