Skip to content

Commit 5420597

Browse files
committed
ACP2E-4294: Restricted Category Products Still Counted in Wishlist After Customer Group Update
1 parent e0d6ca7 commit 5420597

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/code/Magento/Wishlist/Block/AbstractBlock.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace Magento\Wishlist\Block;
88

9+
use Magento\Catalog\Block\Product\Context;
910
use Magento\Catalog\Helper\Image;
1011
use Magento\Catalog\Model\Product\Image\UrlBuilder;
1112
use Magento\Framework\Exception\NoSuchEntityException;
@@ -15,6 +16,7 @@
1516

1617
/**
1718
* Wishlist Product Items abstract Block
19+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1820
*/
1921
abstract class AbstractBlock extends \Magento\Catalog\Block\Product\AbstractProduct
2022
{
@@ -53,11 +55,12 @@ abstract class AbstractBlock extends \Magento\Catalog\Block\Product\AbstractProd
5355
private WishlistItemPermissionsCollectionProcessor $permissionCollectionProcessor;
5456

5557
/**
56-
* @param \Magento\Catalog\Block\Product\Context $context
58+
* @param Context $context
5759
* @param \Magento\Framework\App\Http\Context $httpContext
5860
* @param array $data
5961
* @param ConfigInterface|null $config
6062
* @param UrlBuilder|null $urlBuilder
63+
* @param WishlistItemPermissionsCollectionProcessor|null $permissionCollectionProcessor
6164
*/
6265
public function __construct(
6366
\Magento\Catalog\Block\Product\Context $context,
@@ -244,6 +247,7 @@ public function hasDescription($item)
244247
*
245248
* @param string $date
246249
* @deprecated 101.1.1
250+
* @see getFormattedDate
247251
* @return string
248252
*/
249253
public function getFormatedDate($date)

app/code/Magento/Wishlist/Model/WishlistItemPermissionsCollectionProcessor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public function __construct(
2424
}
2525

2626
/**
27+
* Remove wishlist items from collection if category permissions in effect
28+
*
2729
* @param Collection $collection
2830
* @return Collection
2931
* @throws \Exception

0 commit comments

Comments
 (0)