Magento 2.1.9 Configurable::getUsedProducts returns a different array after product collections is cached #11880
Labels
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
Preconditions
Magento 2.1.9
\Magento\ConfigurableProduct\Model\Product\Type\Configurable::getUsedProducts
returns a different array after product collection is cached.Steps to reproduce
$usedProducts
bin/magento cache:clean collections
)$usedProducts
Expected result
$usedProducts
should contain the same indexes->values where indexes are the product children ids.Actual result
Before cleaning the collections cache, the returned array is a simple array indexes->values where indexes are incremental.
After cleaning the collections cache, the returned array is an associative array where the indexes are the product children ids.
The text was updated successfully, but these errors were encountered: