verbb / wishlist

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

getInUserLists() error + documentation missing #95

Closed TomDeSmet closed 2 years ago

TomDeSmet commented 2 years ago

Description I want to check if an item is in any list (across list types too). I just found the, undocumented, getInUserLists() through #88, but I think there's a bug? Undefined variable: forUser, the $forUser and $forceSave variables are not known to that method.

If I delete that code, it seems to work fine.

engram-design commented 2 years ago

This function is certainly under-done, sorry! Should be fixed for the next release. To get this fix early, change your verbb/wishlist requirement in composer.json to:

"require": {
  "verbb/wishlist": "dev-craft-3 as 1.4.10",
  "...": "..."
}

Then run composer update.

engram-design commented 2 years ago

Fixed in 1.4.11