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 9cbda8c commit 7e51dc3Copy full SHA for 7e51dc3
app/code/Magento/ConfigurableProduct/Model/Plugin/UpdateStockChangedAuto.php
@@ -37,8 +37,7 @@ public function __construct(GetProductTypeById $getProductTypeById)
37
*/
38
public function beforeSave(ItemResourceModel $subject, StockItem $stockItem): void
39
{
40
- if (
41
- !$stockItem->getIsInStock() &&
+ if (!$stockItem->getIsInStock() &&
42
!$stockItem->hasStockStatusChangedAutomaticallyFlag() &&
43
$this->getProductTypeById->execute($stockItem->getProductId()) == Configurable::TYPE_CODE
44
) {
0 commit comments