aimeos / ai-client-jsonapi

Aimeos frontend JSON API
GNU Lesser General Public License v3.0
28 stars 6 forks source link

Fix basket save operation for multiple baskets #10

Closed faheem00 closed 3 years ago

faheem00 commented 3 years ago

When a basket has a predefined ID (for multiple baskets), a Basket Empty error is thrown during basket save operation. This occurs because the basket ID is not set in the controller before check operation is done.

This PR fixes the issue by attaching the cart ID to the controller earlier, thereby making sure that subsequent calls to the controller will return the correct basket.

This issue was first posted on https://aimeos.org/help/post13915.html

aimeos commented 3 years ago

Great! Thanks a lot for your fix!

aimeos commented 3 years ago

You can use:

composer req aimeos/ai-client-jsonapi:2020.10.x-dev

until a new release is tagged