{"data":{"id":"MDVA-41061","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where stock status resets to salable when a product is saved from Admin.","categories":["Inventory"],"components":["magento/module-catalog-inventory","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","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-5/mdva-41061-stock-status-resets-saleable-when-saved-from-admin","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-5/mdva-41061-stock-status-resets-saleable-when-saved-from-admin.md","blobSha":"a48f74be8b6ebe7a5aa946181adc003690a68650","description":"Stock status resets to saleable when the product is saved from the Admin.","stepsToReproduce":"1. Create a simple product with Qty = 1. 1. Place an order using the product created in step 1. 1. Run cron - make sure inventory.reservations.updateSalabilityStatus queue is executed and product stock status has been changed to zero in the cataloginventory_stock_status table. 1. Check product on the frontend. It should be marked as Out of Stock. 1. Save product in the Admin without any changes.","introducedInQpt":"1.1.5","createdFor":["2.4.2-p1"],"documentedRange":"2.4.2 - 2.4.2-p2, 2.4.3 - 2.4.3-p2","scheduledFixRelease":null},"files":[{"package":"magento/magento2-base","constraint":">=2.4.2 <2.4.3","path":"patches/os/MDVA-41061_2.4.2-p1_v2.patch","blobSha":"bc02f390c54ed942526c84704da98cd21f3eaa1e","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/MDVA-41061_2.4.2-p1_v2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/DefaultStock.php","change":"modified","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/GetStatusExpression.php","change":"added","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/StatusExpression/DefaultExpression.php","change":"added","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/StatusExpression/ExpressionInterface.php","change":"added","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/etc/di.xml","change":"modified","package":"magento/module-catalog-inventory"}],"packages":["magento/module-catalog-inventory"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.2-p2","2.4.2-p1","2.4.2"],"magento-commerce":["2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":"MDVA-41061-V2","deprecated":false},{"package":"magento/magento2-base","constraint":">=2.4.3 <2.4.4","path":"patches/os/MDVA-41015_2.4.3.patch","blobSha":"5cca07f04c3528211d92d5fb4ec476b0e2cecf84","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/MDVA-41015_2.4.3.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/DefaultStock.php","change":"modified","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/GetStatusExpression.php","change":"added","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/StatusExpression/DefaultExpression.php","change":"added","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/Indexer/Stock/StatusExpression/ExpressionInterface.php","change":"added","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/etc/di.xml","change":"modified","package":"magento/module-catalog-inventory"}],"packages":["magento/module-catalog-inventory"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":"MDVA-41061-V2","deprecated":false},{"package":"magento/inventory-metapackage","constraint":"1.2.2","path":"patches/os/MDVA-41061_1.2.2_v2.patch","blobSha":"570c512bc7f7a4a152b0d05d9b19fb506574b850","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/MDVA-41061_1.2.2_v2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-catalog/Model/BulkInventoryTransfer.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Model/ResourceModel/StockStatusExpressionForDefaultStock.php","change":"added","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Model/SourceItemsSaveSynchronization/SetDataToLegacyCatalogInventory.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/Api/StockRegistry/AdaptUpdateStockStatusBySkuPlugin.php","change":"added","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/Api/StockRegistry/SetQtyToLegacyStock.php","change":"added","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/UpdateSourceItemAtLegacyStockItemSavePlugin.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/etc/di.xml","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/Api/StockRegistry/SetQtyToLegacyStock.php","change":"added","package":"magento/module-inventory-configurable-product"},{"path":"vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/Observer/ParentItemProcessor/AdaptParentItemProcessorPlugin.php","change":"modified","package":"magento/module-inventory-configurable-product"},{"path":"vendor/magento/module-inventory-configurable-product/etc/di.xml","change":"modified","package":"magento/module-inventory-configurable-product"},{"path":"vendor/magento/module-inventory-configuration/Model/LegacyStockItem/CacheStorage.php","change":"added","package":"magento/module-inventory-configuration"},{"path":"vendor/magento/module-inventory-configuration/Plugin/InventoryConfiguration/Model/GetLegacyStockItemCache.php","change":"modified","package":"magento/module-inventory-configuration"},{"path":"vendor/magento/module-inventory-indexer/Indexer/SelectBuilder.php","change":"modified","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-indexer/Indexer/SourceItem/Strategy/Sync.php","change":"modified","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-indexer/Indexer/Stock/PrepareReservationsIndexData.php","change":"added","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-indexer/Indexer/Stock/ReservationsIndexTable.php","change":"added","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-indexer/Indexer/Stock/Strategy/Sync.php","change":"modified","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/IsStockItemSalableConditionChain.php","change":"modified","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/MinQtyStockCondition.php","change":"modified","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/ReservationsCondition.php","change":"added","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/etc/di.xml","change":"modified","package":"magento/module-inventory-sales"}],"packages":["magento/module-inventory-catalog","magento/module-inventory-configurable-product","magento/module-inventory-configuration","magento/module-inventory-indexer","magento/module-inventory-sales"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.2-p2","2.4.2-p1","2.4.2"],"magento-commerce":["2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"unknownVersions":["2.3.7-p4","2.3.7-p3","2.3.7-p2","2.3.7-p1","2.3.7","2.3.6-p1","2.3.6","2.3.5-p2","2.3.5-p1","2.3.5","2.3.4-p2","2.3.4-p1","2.3.4","2.3.3-p2","2.3.3","2.3.2-p2","2.3.2-p1","2.3.2","2.3.1","2.3.0"],"requires":[],"replacedWith":"MDVA-41061-V2","deprecated":false},{"package":"magento/inventory-metapackage","constraint":">=1.2.3 <1.2.4","path":"patches/os/MDVA-41015_1.2.3.patch","blobSha":"e36c61164f88ac5ce30bf06fff6cbf97c9b9c347","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/MDVA-41015_1.2.3.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-catalog/Model/BulkInventoryTransfer.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Model/ResourceModel/StockStatusExpressionForDefaultStock.php","change":"added","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Model/SourceItemsSaveSynchronization/SetDataToLegacyCatalogInventory.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/Api/StockRegistry/AdaptUpdateStockStatusBySkuPlugin.php","change":"added","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/Api/StockRegistry/SetQtyToLegacyStock.php","change":"added","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/UpdateSourceItemAtLegacyStockItemSavePlugin.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/etc/di.xml","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/Api/StockRegistry/SetQtyToLegacyStock.php","change":"added","package":"magento/module-inventory-configurable-product"},{"path":"vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/Observer/ParentItemProcessor/AdaptParentItemProcessorPlugin.php","change":"modified","package":"magento/module-inventory-configurable-product"},{"path":"vendor/magento/module-inventory-configurable-product/etc/di.xml","change":"modified","package":"magento/module-inventory-configurable-product"},{"path":"vendor/magento/module-inventory-configuration/Model/LegacyStockItem/CacheStorage.php","change":"added","package":"magento/module-inventory-configuration"},{"path":"vendor/magento/module-inventory-configuration/Plugin/InventoryConfiguration/Model/GetLegacyStockItemCache.php","change":"modified","package":"magento/module-inventory-configuration"},{"path":"vendor/magento/module-inventory-indexer/Indexer/SelectBuilder.php","change":"modified","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-indexer/Indexer/SourceItem/Strategy/Sync.php","change":"modified","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-indexer/Indexer/Stock/PrepareReservationsIndexData.php","change":"added","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-indexer/Indexer/Stock/ReservationsIndexTable.php","change":"added","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-indexer/Indexer/Stock/Strategy/Sync.php","change":"modified","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/IsStockItemSalableConditionChain.php","change":"modified","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/MinQtyStockCondition.php","change":"modified","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/ReservationsCondition.php","change":"added","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/etc/di.xml","change":"modified","package":"magento/module-inventory-sales"}],"packages":["magento/module-inventory-catalog","magento/module-inventory-configurable-product","magento/module-inventory-configuration","magento/module-inventory-indexer","magento/module-inventory-sales"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"mage-os":[]},"unknownVersions":["2.3.7-p4","2.3.7-p3","2.3.7-p2","2.3.7-p1","2.3.7","2.3.6-p1","2.3.6","2.3.5-p2","2.3.5-p1","2.3.5","2.3.4-p2","2.3.4-p1","2.3.4","2.3.3-p2","2.3.3","2.3.2-p2","2.3.2-p1","2.3.2","2.3.1","2.3.0"],"requires":[],"replacedWith":"MDVA-41061-V2","deprecated":false}],"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch MDVA-41061 details"}