Skip to content

Commit 857609b

Browse files
committed
ACP2E-2023: Related Products Rules condition not work
1 parent 0fe805f commit 857609b

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/CatalogInventory/Model/ResourceModel/Stock

1 file changed

+4
-2
lines changed

app/code/Magento/CatalogInventory/Model/ResourceModel/Stock/Status.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2424
* @api
2525
*
26-
* @deprecated 100.3.0 Replaced with Multi Source Inventory
26+
* @deprecated 100.3.0
27+
* @see Replaced with Multi Source Inventory
2728
* @link https://developer.adobe.com/commerce/webapi/rest/inventory/index.html
2829
* @link https://developer.adobe.com/commerce/webapi/rest/inventory/inventory-api-reference.html
2930
* @since 100.0.2
@@ -35,6 +36,7 @@ class Status extends AbstractDb
3536
*
3637
* @var StoreManagerInterface
3738
* @deprecated 100.1.0
39+
* @see Not used anymore
3840
*/
3941
protected $_storeManager;
4042

@@ -227,7 +229,7 @@ public function getProductCollection($lastEntityId = 0, $limit = 1000)
227229
*/
228230
public function addStockStatusToSelect(Select $select, Website $website)
229231
{
230-
$websiteId = $this->getWebsiteId($website->getId());
232+
$websiteId = $this->getWebsiteId();
231233
$select->joinLeft(
232234
['stock_status' => $this->getMainTable()],
233235
'e.entity_id = stock_status.product_id AND stock_status.website_id=' . $websiteId,

0 commit comments

Comments
 (0)