MDVA-41061-V4: Stock status resets to salable when a product is saved from Admin
Stock status resets to salable when a product is saved from Admin. Quality patch MDVA-41061-V4 for magento/module-catalog applies to Magento Open Source and Adobe Commerce 2.4.2 to 2.4.4-p18.
- Categories
- Inventory
- Components
- magento/module-catalog, magento/module-catalog-inventory, magento/module-configurable-import-export, magento/module-configurable-product, magento/module-inventory-catalog, magento/module-inventory-configurable-product, magento/module-inventory-configuration, magento/module-inventory-indexer, magento/module-inventory-sales
- Origin
- adobe-commerce-support
No Adobe documentation page exists for this patch.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply MDVA-41061-V4. On Cloud, add MDVA-41061-V4 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its MDVA-41061-V4/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.4.2 <2.4.3
- Patch file
- patches/os/ACSD-41061_2.4.2-p1_v6.patch
- vendor/magento/module-catalog/Model/ResourceModel/GetProductTypeById.php (added)
- vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/DefaultStock.php
- vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/GetStatusExpression.php (added)
- vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/StatusExpression/DefaultExpression.php (added)
- vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/StatusExpression/ExpressionInterface.php (added)
- vendor/magento/module-catalog-inventory/etc/di.xml
- vendor/magento/module-configurable-import-export/Plugin/Import/Product/UpdateConfigurableProductsStockItemStatusPlugin.php (added)
- vendor/magento/module-configurable-import-export/etc/di.xml
- vendor/magento/module-configurable-product/Model/Inventory/ChangeParentStockStatus.php (added)
- vendor/magento/module-configurable-product/Model/Inventory/ParentItemProcessor.php
- vendor/magento/module-configurable-product/Model/Plugin/UpdateStockChangedAuto.php (added)
- vendor/magento/module-configurable-product/etc/di.xml
magento/magento2-base >=2.4.3 <2.4.4
- Patch file
- patches/os/ACSD-41061_2.4.3-p1_v6.patch
- vendor/magento/module-catalog/Model/ResourceModel/GetProductTypeById.php (added)
- vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/DefaultStock.php
- vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/GetStatusExpression.php (added)
- vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/StatusExpression/DefaultExpression.php (added)
- vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/StatusExpression/ExpressionInterface.php (added)
- vendor/magento/module-catalog-inventory/etc/di.xml
- vendor/magento/module-configurable-product/Model/Inventory/ChangeParentStockStatus.php
- vendor/magento/module-configurable-product/Model/Plugin/UpdateStockChangedAuto.php (added)
- vendor/magento/module-configurable-product/etc/di.xml
magento/magento2-base >=2.4.4 <2.4.5
- Magento Open Source
- 2.4.4-p18, 2.4.4-p17, 2.4.4-p16, 2.4.4-p15, 2.4.4-p14, 2.4.4-p13, 2.4.4-p12, 2.4.4-p11, 2.4.4-p10, 2.4.4-p9, 2.4.4-p8, 2.4.4-p7, 2.4.4-p6, 2.4.4-p5, 2.4.4-p4, 2.4.4-p3, 2.4.4-p2, 2.4.4-p1, 2.4.4
- Adobe Commerce
- 2.4.4-p18, 2.4.4-p17, 2.4.4-p16, 2.4.4-p15, 2.4.4-p14, 2.4.4-p13, 2.4.4-p12, 2.4.4-p11, 2.4.4-p10, 2.4.4-p9, 2.4.4-p8, 2.4.4-p7, 2.4.4-p6, 2.4.4-p5, 2.4.4-p4, 2.4.4-p3, 2.4.4-p2, 2.4.4-p1, 2.4.4
- Patch file
- patches/os/MDVA-44818_2.4.4.patch
- vendor/magento/module-catalog/Model/ResourceModel/GetProductTypeById.php (added)
- vendor/magento/module-configurable-product/Model/Inventory/ChangeParentStockStatus.php
- vendor/magento/module-configurable-product/Model/Plugin/UpdateStockChangedAuto.php (added)
- vendor/magento/module-configurable-product/etc/di.xml
magento/inventory-metapackage 1.2.2
- Patch file
- patches/os/ACSD-41061_1.2.2_v6.patch
- vendor/magento/module-inventory-catalog/Model/BulkInventoryTransfer.php
- vendor/magento/module-inventory-catalog/Model/ResourceModel/StockStatusExpressionForDefaultStock.php (added)
- vendor/magento/module-inventory-catalog/Model/SourceItemsSaveSynchronization/SetDataToLegacyCatalogInventory.php
- vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/Api/StockRegistry/AdaptUpdateStockStatusBySkuPlugin.php (added)
- vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/Api/StockRegistry/SetQtyToLegacyStock.php (added)
- vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/UpdateSourceItemAtLegacyStockItemSavePlugin.php
- vendor/magento/module-inventory-catalog/etc/di.xml
- vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/Api/StockRegistry/SetQtyToLegacyStock.php (added)
- vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/Observer/ParentItemProcessor/AdaptParentItemProcessorPlugin.php
- vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/UpdateLegacyStockItemForNewConfigurableProduct.php (added)
- vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/UpdateLegacyStockStatusForConfigurableProduct.php (added)
- vendor/magento/module-inventory-configurable-product/Plugin/InventoryApi/UpdateConfigurableProductParentStockStatus.php (added)
- vendor/magento/module-inventory-configurable-product/etc/di.xml
- vendor/magento/module-inventory-configuration/Model/LegacyStockItem/CacheStorage.php (added)
- vendor/magento/module-inventory-configuration/Plugin/InventoryConfiguration/Model/GetLegacyStockItemCache.php
- vendor/magento/module-inventory-indexer/Indexer/SelectBuilder.php
- vendor/magento/module-inventory-indexer/Indexer/SourceItem/Strategy/Sync.php
- vendor/magento/module-inventory-indexer/Indexer/Stock/PrepareReservationsIndexData.php (added)
- vendor/magento/module-inventory-indexer/Indexer/Stock/ReservationsIndexTable.php (added)
- vendor/magento/module-inventory-indexer/Indexer/Stock/Strategy/Sync.php
- vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/BackordersCondition.php
- vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/IsStockItemSalableConditionChain.php
- vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/MinQtyStockCondition.php
- vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/MinQtyStockWithReservationsCondition.php (added)
- vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/ReservationsCondition.php (added)
- vendor/magento/module-inventory-sales/etc/di.xml
magento/inventory-metapackage >=1.2.3 <1.2.4
- Patch file
- patches/os/ACSD-41061_1.2.3_v6.patch
- vendor/magento/module-inventory-catalog/Model/BulkInventoryTransfer.php
- vendor/magento/module-inventory-catalog/Model/ResourceModel/StockStatusExpressionForDefaultStock.php (added)
- vendor/magento/module-inventory-catalog/Model/SourceItemsSaveSynchronization/SetDataToLegacyCatalogInventory.php
- vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/Api/StockRegistry/AdaptUpdateStockStatusBySkuPlugin.php (added)
- vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/Api/StockRegistry/SetQtyToLegacyStock.php (added)
- vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/UpdateSourceItemAtLegacyStockItemSavePlugin.php
- vendor/magento/module-inventory-catalog/etc/di.xml
- vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/Api/StockRegistry/SetQtyToLegacyStock.php (added)
- vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/Observer/ParentItemProcessor/AdaptParentItemProcessorPlugin.php
- vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/UpdateLegacyStockItemForNewConfigurableProduct.php (added)
- vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/UpdateLegacyStockStatusForConfigurableProduct.php (added)
- vendor/magento/module-inventory-configurable-product/Plugin/InventoryApi/UpdateConfigurableProductParentStockStatus.php (added)
- vendor/magento/module-inventory-configurable-product/etc/di.xml
- vendor/magento/module-inventory-configuration/Model/LegacyStockItem/CacheStorage.php (added)
- vendor/magento/module-inventory-configuration/Plugin/InventoryConfiguration/Model/GetLegacyStockItemCache.php
- vendor/magento/module-inventory-indexer/Indexer/SelectBuilder.php
- vendor/magento/module-inventory-indexer/Indexer/SourceItem/Strategy/Sync.php
- vendor/magento/module-inventory-indexer/Indexer/Stock/PrepareReservationsIndexData.php (added)
- vendor/magento/module-inventory-indexer/Indexer/Stock/ReservationsIndexTable.php (added)
- vendor/magento/module-inventory-indexer/Indexer/Stock/Strategy/Sync.php
- vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/BackordersCondition.php
- vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/IsStockItemSalableConditionChain.php
- vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/MinQtyStockCondition.php
- vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/MinQtyStockWithReservationsCondition.php (added)
- vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/ReservationsCondition.php (added)
- vendor/magento/module-inventory-sales/etc/di.xml
magento/inventory-metapackage >=1.2.4 <1.2.5
- Magento Open Source
- 2.4.4-p18, 2.4.4-p17, 2.4.4-p16, 2.4.4-p15, 2.4.4-p14, 2.4.4-p13, 2.4.4-p12, 2.4.4-p11, 2.4.4-p10, 2.4.4-p9, 2.4.4-p8, 2.4.4-p7, 2.4.4-p6, 2.4.4-p5, 2.4.4-p4, 2.4.4-p3, 2.4.4-p2, 2.4.4-p1, 2.4.4
- Adobe Commerce
- 2.4.4-p18, 2.4.4-p17, 2.4.4-p16, 2.4.4-p15, 2.4.4-p14, 2.4.4-p13, 2.4.4-p12, 2.4.4-p11, 2.4.4-p10, 2.4.4-p9, 2.4.4-p8, 2.4.4-p7, 2.4.4-p6, 2.4.4-p5, 2.4.4-p4, 2.4.4-p3, 2.4.4-p2, 2.4.4-p1, 2.4.4
- Patch file
- patches/os/MDVA-44818_1.2.4.patch
- vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/UpdateLegacyStockItemForNewConfigurableProduct.php (added)
- vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/UpdateLegacyStockStatusForConfigurableProduct.php (added)
- vendor/magento/module-inventory-configurable-product/etc/di.xml
