- Issue created by @plopesc
- Merge request !2Issue #3491531: OrderItemSubscriber throws OrderVersionMismatchException when... → (Merged) created by plopesc
Automatically closed - issue fixed for 2 weeks with no activity.
OrderItemSubscriber::onItemInsert
performs a save() call on the parent order to assign the order item not only when creating a new order item from the UI, but also when adding a single product to the cart.
That extra call to save() leads to the OrderVersionMismatchException when the item is added to the cart by CartManager::addOrderItem
Drupal\commerce_order\Exception\OrderVersionMismatchException: Attempted to save order XXX with version 1. Current version is 2
Refactor the way this module works to avoid this exception
Active
1.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.