Skip to content

Commit 449cc81

Browse files
MC-17919: In stock products are showing as out of stock after they are enabled via a Scheduled Update
1 parent f94b4a8 commit 449cc81

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

app/code/Magento/CatalogInventory/Model/ResourceModel/Indexer/Stock/DefaultStock.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ protected function _getStockStatusSelect($entityIds = null, $usePrimaryTable = f
248248
)->joinInner(
249249
['mcpei' => $this->getTable('catalog_product_entity_int')],
250250
'e.' . $linkField . ' = mcpei.' . $linkField
251-
. ' AND mcpei.attribute_id = ' . $this->_getAttribute('status')->getId()
252-
. ' AND mcpei.value = ' . ProductStatus::STATUS_ENABLED,
251+
. ' AND mcpei.attribute_id = ' . $this->_getAttribute('status')->getId(),
253252
[]
254253
)->columns(
255254
['qty' => $qtyExpr]

0 commit comments

Comments
 (0)