Skip to content

Commit 5868de4

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-98831: The SKU was not found in the catalog
1 parent 0b9c2bc commit 5868de4

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Search/Grid.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* @api
1616
* @author Magento Core Team <core@magentocommerce.com>
1717
* @since 100.0.2
18+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1819
*/
1920
class Grid extends \Magento\Backend\Block\Widget\Grid\Extended
2021
{
@@ -167,22 +168,6 @@ protected function _prepareCollection()
167168
$this->_salesConfig->getAvailableProductTypes()
168169
);
169170

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-
186171
$this->setCollection($collection);
187172
return parent::_prepareCollection();
188173
}

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Search/Grid/DataProvider/ProductCollection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ public function getCollectionForStore(Store $store):Collection
5353
return $collection;
5454
}
5555
}
56-

0 commit comments

Comments
 (0)