ACSD-66302: Wishlist items are incorrectly filtered by store ID instead of by website
Wishlist items are incorrectly filtered by store ID instead of by website. Quality patch ACSD-66302 for magento/module-wishlist-graph-ql applies to Magento Open Source and Adobe Commerce 2.4.8 to 2.4.8-p5.
- Categories
- GraphQL
- Components
- magento/module-wishlist-graph-ql
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.69
Issue
Wishlist items are incorrectly filtered by store ID instead of by website.
Steps to reproduce
1. Create a simple product. 1. Create an additional storeview. 1. In Admin, go to Stores > Settings > Configuration > Customers > Wish List > General Options, and set Enable Multiple Wish Lists to Yes. 1. Go to Stores > Settings > Configuration > General > Web > Url Options, and set Add Store Code to Urls to Yes. 1. Create a customer account. 1. Use a GraphQL request to retrieve the customer auth token. 1. Login as the customer. 1. Select the Default Store View and add the product to the wishlist. 1. Switch store view to test. 1. Confirm that the product still appears in the wishlist (correct behavior). 1. Execute the following GraphQL query: { customer { wishlists { id name items_count items_v2 { items { id product { uid name sku } } } } } } 1. Perform the query on the default store – the product appears as expected. 1. Perform the same query on the test store – the product does not appear.
Adobe's page lists 2.4.8 - 2.4.8-p1 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.9.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-66302. On Cloud, add ACSD-66302 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-66302/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.4.8 <2.4.9
- Patch file
- patches/os/ACSD-66302_2.4.8.patch
- vendor/magento/module-wishlist-graph-ql/Model/Resolver/WishlistItems.php
