Skip to content

Commit 9ce2243

Browse files
committed
ACP2E-4294: Restricted Category Products Still Counted in Wishlist After Customer Group Update
1 parent 247434b commit 9ce2243

File tree

3 files changed

+2
-265
lines changed

3 files changed

+2
-265
lines changed

app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\Ab
8080
protected $_isProductNameJoined = false;
8181

8282
/**
83-
* Adminhtml sales
84-
*
8583
* @var \Magento\Sales\Helper\Admin
8684
*/
8785
protected $_adminhtmlSales = null;
@@ -319,7 +317,7 @@ protected function _assignOptions()
319317
* @return $this
320318
*/
321319
protected function _assignProducts()
322-
{//here
320+
{
323321
\Magento\Framework\Profiler::start(
324322
'WISHLIST:' . __METHOD__,
325323
['group' => 'WISHLIST', 'method' => __METHOD__]

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,6 @@ class Wishlist extends AbstractModel implements IdentityInterface
149149
*/
150150
private $stockConfiguration;
151151

152-
/**
153-
* @var WishlistItemPermissionsCollectionProcessor
154-
*/
155-
private WishlistItemPermissionsCollectionProcessor $permissionCollectionProcessor;
156-
157152
/**
158153
* Constructor
159154
*
@@ -177,7 +172,6 @@ class Wishlist extends AbstractModel implements IdentityInterface
177172
* @param StockRegistryInterface|null $stockRegistry
178173
* @param ScopeConfigInterface|null $scopeConfig
179174
* @param StockConfigurationInterface|null $stockConfiguration
180-
* @param WishlistItemPermissionsCollectionProcessor|null $permissionCollectionProcessor
181175
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
182176
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
183177
*/
@@ -201,8 +195,7 @@ public function __construct(
201195
?Json $serializer = null,
202196
?StockRegistryInterface $stockRegistry = null,
203197
?ScopeConfigInterface $scopeConfig = null,
204-
?StockConfigurationInterface $stockConfiguration = null,
205-
?WishlistItemPermissionsCollectionProcessor $permissionCollectionProcessor = null
198+
?StockConfigurationInterface $stockConfiguration = null
206199
) {
207200
$this->_useCurrentWebsite = $useCurrentWebsite;
208201
$this->_catalogProduct = $catalogProduct;
@@ -219,8 +212,6 @@ public function __construct(
219212
$this->productRepository = $productRepository;
220213
$this->stockConfiguration = $stockConfiguration
221214
?: ObjectManager::getInstance()->get(StockConfigurationInterface::class);
222-
$this->permissionCollectionProcessor = $permissionCollectionProcessor ?:
223-
ObjectManager::getInstance()->get(WishlistItemPermissionsCollectionProcessor::class);
224215
}
225216

226217
/**

app/code/Magento/Wishlist/Test/Unit/Model/WishlistItemPermissionsCollectionProcessorTest.php

Lines changed: 0 additions & 252 deletions
This file was deleted.

0 commit comments

Comments
 (0)