File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed
app/code/Magento/Sales/Block/Adminhtml/Order/Create/Search Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change 15
15
* @api
16
16
* @author Magento Core Team <core@magentocommerce.com>
17
17
* @since 100.0.2
18
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18
19
*/
19
20
class Grid extends \Magento \Backend \Block \Widget \Grid \Extended
20
21
{
@@ -167,22 +168,6 @@ protected function _prepareCollection()
167
168
$ this ->_salesConfig ->getAvailableProductTypes ()
168
169
);
169
170
170
- /*
171
- $collection = $this->_productFactory->create()->getCollection();
172
- $collection->setStore(
173
- $this->getStore()
174
- )->addAttributeToSelect(
175
- $attributes
176
- )->addAttributeToSelect(
177
- 'sku'
178
- )->addStoreFilter()->addAttributeToFilter(
179
- 'type_id',
180
- $this->_salesConfig->getAvailableProductTypes()
181
- )->addAttributeToSelect(
182
- 'gift_message_available'
183
- );
184
- */
185
-
186
171
$ this ->setCollection ($ collection );
187
172
return parent ::_prepareCollection ();
188
173
}
Original file line number Diff line number Diff line change @@ -53,4 +53,3 @@ public function getCollectionForStore(Store $store):Collection
53
53
return $ collection ;
54
54
}
55
55
}
56
-
You can’t perform that action at this time.
0 commit comments