Skip to content

Conversation

@Shreyansh284
Copy link

@Shreyansh284 Shreyansh284 commented Nov 3, 2025

#7906

Summary

Implements backend validation to prevent customers from creating duplicate wishlist names.

Changes

  • Added duplicate name check in ShoppingCartController.AddWishlist
  • Added localization message Wishlist.DuplicateNameNotAllowed
  • Returns proper JSON response on conflict

Testing

  • Verified customers cannot create a wishlist with an existing name
  • Verified guest and unique name creation still works correctly

Localization

Added to resource file:

<LocaleResource Name="Wishlist.DuplicateNameNotAllowed">
  <Value>A wishlist with this name already exists.</Value>
</LocaleResource>

@AndreiMaz AndreiMaz changed the title fix: prevent creation of duplicated wishlist names (#7906) Prevent creation of duplicated wishlist names (#7906) Nov 3, 2025
@Shreyansh284
Copy link
Author

Here is how error message looks like
image

@Shreyansh284
Copy link
Author

Hi @AndreiMaz, @DmitriyKulagin 👋
Just following up — please let me know if any changes or improvements are needed on this PR.
Thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants