From ae9f2312746ecdc936db61c90b6942a62c6b2ecf Mon Sep 17 00:00:00 2001 From: grandeljay Date: Wed, 23 Nov 2022 18:22:19 +0100 Subject: [PATCH] Fix empty shared wishlist --- src/assets/js/parts/wishlist-filter.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/assets/js/parts/wishlist-filter.js b/src/assets/js/parts/wishlist-filter.js index be904c4e..8db79782 100644 --- a/src/assets/js/parts/wishlist-filter.js +++ b/src/assets/js/parts/wishlist-filter.js @@ -11,6 +11,12 @@ $(function () { .api({ 'action' : 'get wishlists by priority', beforeSend : function (settings) { + var wishlist_id = $('.wishlist-cards[data-wishlist]').attr('data-wishlist'); + + if (undefined === wishthis.$_GET.id && wishlist_id.length > 0) { + wishthis.$_GET.id = wishlist_id; + } + settings.urlData.style = $('input[name="style"]').val(); settings.urlData.priority = $('.ui.dropdown.filter.priority').dropdown('get value'); settings.urlData.wishlistid = wishthis.$_GET.id;