Skip to content

Commit 8b8fd72

Browse files
committed
ACP2E-3282: When we unassign products from the shared catalog, the wishlist products are not being cleared
1 parent 2a2429f commit 8b8fd72

File tree

1 file changed

+2
-17
lines changed
  • app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection

1 file changed

+2
-17
lines changed

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

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright 2013 Adobe
4-
* All Rights Reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
55
*/
66

77
namespace Magento\Wishlist\Model\ResourceModel\Item\Collection;
@@ -124,8 +124,6 @@ protected function _assignProducts()
124124
$item->setProductName($product->getName());
125125
$item->setName($product->getName());
126126
$item->setPrice($product->getPrice());
127-
} else {
128-
$this->removeItemByKey($item->getId());
129127
}
130128
}
131129

@@ -188,17 +186,4 @@ private function addQtyFilter(string $field, array $condition)
188186
{
189187
return parent::addFieldToFilter('main_table.' . $field, $condition);
190188
}
191-
192-
/**
193-
* @inheritdoc
194-
*/
195-
/* public function getSize()
196-
{
197-
$this->load();
198-
if ($this->_totalRecords === null) {
199-
$this->_totalRecords = count($this->getItems());
200-
}
201-
202-
return (int)$this->_totalRecords;
203-
}*/
204189
}

0 commit comments

Comments
 (0)