title | issue | author | author_email |
---|---|---|---|
Fix category id update in line item |
NEXT-31519 |
Max Stegmeyer |
- Changed
\Shopware\Core\Content\Product\Cart\ProductCartProcessor
to correctly replace arrays in line item payloads. - Changed
\Shopware\Core\Checkout\Cart\LineItem\LineItem::replacePayload
to not replace recursively anymore, just on the first level.
The method \Shopware\Core\Checkout\Cart\LineItem\LineItem::replacePayload
does not do a recursive replacement of the payload anymore, but replaces the payload only on a first level.
Therefore, subarrays of the payload may reduce in items instead of being only added to.