File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Copyright 2013 Adobe
4
- * All Rights Reserved .
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details .
5
5
*/
6
6
7
7
namespace Magento \Wishlist \Model \ResourceModel \Item \Collection ;
@@ -124,8 +124,6 @@ protected function _assignProducts()
124
124
$ item ->setProductName ($ product ->getName ());
125
125
$ item ->setName ($ product ->getName ());
126
126
$ item ->setPrice ($ product ->getPrice ());
127
- } else {
128
- $ this ->removeItemByKey ($ item ->getId ());
129
127
}
130
128
}
131
129
@@ -188,17 +186,4 @@ private function addQtyFilter(string $field, array $condition)
188
186
{
189
187
return parent ::addFieldToFilter ('main_table. ' . $ field , $ condition );
190
188
}
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
- }*/
204
189
}
You can’t perform that action at this time.
0 commit comments