Skip to content

Prevent empty wishlist creation on page load - #89

Open
jkindly wants to merge 2 commits into
Sylius:1.3from
jkindly:bug/prevent-empty-wishlist-creation
Open

Prevent empty wishlist creation on page load#89
jkindly wants to merge 2 commits into
Sylius:1.3from
jkindly:bug/prevent-empty-wishlist-creation

Conversation

@jkindly

@jkindly jkindly commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Completion of #84
There was still resolveAndCreate() in ListWishlistProductsAction that was creating empty wishlist when /wishlist url was visited.

@jkindly
jkindly requested a review from a team as a code owner July 15, 2026 06:08
Comment thread config/services/controller.xml
@crydotsnake crydotsnake added Bug Confirmed bugs or bugfixes. Shop Shop related issues and PRs. labels Jul 29, 2026
Comment thread UPGRADE-1.3.md
Comment on lines +79 to +90
```diff
<service id="sylius_wishlist_plugin.controller.action.list_wishlist_products" class="Sylius\WishlistPlugin\Controller\Action\ListWishlistProductsAction">
<argument type="service" id="sylius.context.cart"/>
<argument type="service" id="form.factory"/>
<argument type="service" id="twig"/>
<argument type="service" id="sylius_wishlist_plugin.processor.wishlist_command_processor"/>
<argument type="service" id="sylius_wishlist_plugin.resolver.wishlists_resolver"/>
- <argument type="service" id="translator"/>
- <argument type="service" id="router"/>
<tag name="controller.service_arguments"/>
</service>
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```diff
<service id="sylius_wishlist_plugin.controller.action.list_wishlist_products" class="Sylius\WishlistPlugin\Controller\Action\ListWishlistProductsAction">
<argument type="service" id="sylius.context.cart"/>
<argument type="service" id="form.factory"/>
<argument type="service" id="twig"/>
<argument type="service" id="sylius_wishlist_plugin.processor.wishlist_command_processor"/>
<argument type="service" id="sylius_wishlist_plugin.resolver.wishlists_resolver"/>
- <argument type="service" id="translator"/>
- <argument type="service" id="router"/>
<tag name="controller.service_arguments"/>
</service>
```

Not needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Confirmed bugs or bugfixes. Shop Shop related issues and PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants