verbb / wishlist

A Craft CMS plugin for wishlists for your users to save things to
Other
11 stars 12 forks source link

Delete wishlist item when owner element is deleted #121

Closed engram-design closed 4 months ago

engram-design commented 1 year ago

Many people expect the wishlist item to be deleted if the owner element is also deleted. This probably makes sense - if the user has added an entry/element to their wishlist, and that "thing" no longer exists, it's meaningless to keep it in your list.

However, it's a bit of a feature that the wishlist item doesn't get deleted. This is to allow developers to handle deleted elements. For example, the user might head back to their list and notice one thing they've added is suddenly missing. This confuses the user if there's no note saying "this thing was deleted/removed/no longer available". Suddenly just removing something isn't good UX in my opinion.

As such, it's currently up to developers to check if item.getOwner().

So maybe this should be configurable?

engram-design commented 4 months ago

Added in 3.0.0