Skip to content

Commit 1570db2

Browse files
committed
ACP2E-3282: When we unassign products from the shared catalog, the wishlist products are not being cleared
1 parent bc69810 commit 1570db2

File tree

1 file changed

+13
-0
lines changed
  • app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,17 @@ private function addQtyFilter(string $field, array $condition)
188188
{
189189
return parent::addFieldToFilter('main_table.' . $field, $condition);
190190
}
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+
}
191204
}

0 commit comments

Comments
 (0)