inventory
inventory copied to clipboard
Notice: Undefined offset: 0 in vendor/magento/module-inventory-configurable-product-admin-ui/Observer/ProcessSourceItemsObserver.php on line 83
Preconditions (*)
- 2.4.1
- One configurable product and children with sources assigned
- Multiple websites and store views E.g.
Steps to reproduce (*)
- Try to save the configurable product in a different store view than the Default
Expected result (*)
- Product is saved correctly
Actual result (*)
- The product is saved but a notice appears
I've tried debugging this a bit and it seems that in line
vendor/magento/module-inventory-configurable-product-admin-ui/Observer/ProcessSourceItemsObserver.php:75
The productsData array is indexed by 0...N
But later on the function $product->getExtensionAttributes()->getConfigurableProductLinks()
Will return an array indexed by the productId and not with a number 0...N
However when repeating this on the default store view the case is different and everything works fine.
Any ideas why it's loading the product links differently per store?
Hi @ioweb-gr. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
- Join Magento Community Engineering Slack and ask your questions in #github channel.