Skip to content

Commit 147287d

Browse files
committed
MAGETWO-45311: Remove dependency on Website for Cataloginventory
- Reverted website to criteria filters array
1 parent a111d2e commit 147287d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1943,7 +1943,7 @@ protected function _saveStockItem()
19431943
$row['product_id'] = $this->skuProcessor->getNewSku($rowData[self::COL_SKU])['entity_id'];
19441944
$productIdsToReindex[] = $row['product_id'];
19451945

1946-
$row['website_id'] = $this->stockConfiguration->getDefaultWebsiteId();
1946+
$row['website_id'] = $this->stockConfiguration->getDefaultScopeId();
19471947
$row['stock_id'] = $this->stockRegistry->getStock($row['website_id'])->getStockId();
19481948

19491949
$stockItemDo = $this->stockRegistry->getStockItem($row['product_id'], $row['website_id']);

app/code/Magento/CatalogInventory/Model/ResourceModel/Stock/Item/StockItemCriteria.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function setStockFilter($stock)
4747
*/
4848
public function setScopeFilter($scope)
4949
{
50-
$this->data['scope_filter'] = $scope;
50+
$this->data['website_filter'] = $scope;
5151
return true;
5252
}
5353

app/code/Magento/CatalogInventory/Model/ResourceModel/Stock/Status/StockStatusCriteria.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct($mapper = '')
2929
*/
3030
public function setScopeFilter($scope)
3131
{
32-
$this->data['scope_filter'] = $scope;
32+
$this->data['website_filter'] = $scope;
3333
}
3434

3535
/**

app/code/Magento/CatalogInventory/Model/ResourceModel/Stock/StockCriteria.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct($mapper = '')
2727
*/
2828
public function setScopeFilter($scope)
2929
{
30-
$this->data['scope_filter'] = $scope;
30+
$this->data['website_filter'] = $scope;
3131
return true;
3232
}
3333

0 commit comments

Comments
 (0)