You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First create 4 websites then create MSI source and create stock
Create a new configurable product in non-default website scope
In child products, assign stock to non-default source. Do not use default source.
Open product in new website. it will show options out of stock status
The default stock id should not be used in all products.
Issue found in vendor/magento/module-inventory-catalog/Plugin/InventoryIndexer/Model/ResourceModel/GetBulkLegacyStockStatusDataFromStockRegistry.php
On line, if ($this->defaultStockProvider->getId() === $stockId) { - if it not default stock id then skips and $results is empty so $originalResults data is not considered.
It returns empty & wrong data
Expected result (*)
$results is empty then it should consider $originalResults
Actual result (*)
Child items show FALSE POSITIVE - out of stock status. Although there are in stock.