Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 735 Bytes

2023-11-07-fix-category-id-update-in-line-item.md

File metadata and controls

17 lines (14 loc) · 735 Bytes
title issue author author_email
Fix category id update in line item
NEXT-31519
Max Stegmeyer
m.stegmeyer@shopware.com

Core

  • 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.

Upgrade Information

LineItem payload replacement behavior

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.