Skip to content

Commit 7e51dc3

Browse files
author
Anna Bukatar
committed
ACP2E-443: Configurable product remains out of stock even after full reindex if it's in stock and is_salable is set to 0
-Fixed Static tests
1 parent 9cbda8c commit 7e51dc3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/ConfigurableProduct/Model/Plugin/UpdateStockChangedAuto.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public function __construct(GetProductTypeById $getProductTypeById)
3737
*/
3838
public function beforeSave(ItemResourceModel $subject, StockItem $stockItem): void
3939
{
40-
if (
41-
!$stockItem->getIsInStock() &&
40+
if (!$stockItem->getIsInStock() &&
4241
!$stockItem->hasStockStatusChangedAutomaticallyFlag() &&
4342
$this->getProductTypeById->execute($stockItem->getProductId()) == Configurable::TYPE_CODE
4443
) {

0 commit comments

Comments
 (0)