Skip to content

Commit 1af2a36

Browse files
committed
ACP2E-982: Assignment of sources changes after importing data
1 parent 7173bd8 commit 1af2a36

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class Product extends AbstractEntity
227227
* Links attribute name-to-link type ID.
228228
*
229229
* @deprecated 101.1.0 use DI for LinkProcessor class if you want to add additional types
230-
* @see It is possible to supply additional link types via DI
230+
*
231231
* @var array
232232
*/
233233
protected $_linkNameToId = [
@@ -548,7 +548,6 @@ class Product extends AbstractEntity
548548
/**
549549
* @var \Magento\CatalogInventory\Model\ResourceModel\Stock\ItemFactory
550550
* @deprecated 101.0.0 this variable isn't used anymore.
551-
* @see avoid using this variable
552551
*/
553552
protected $_stockResItemFac;
554553

@@ -614,7 +613,6 @@ class Product extends AbstractEntity
614613
* @var array
615614
* @deprecated 100.0.3
616615
* @since 100.0.3
617-
* @see avoid using this variable
618616
*/
619617
protected $productUrlKeys = [];
620618

@@ -1282,7 +1280,6 @@ protected function _prepareRowForDb(array $rowData)
12821280
* Must be called after ALL products saving done.
12831281
*
12841282
* @deprecated 101.1.0 use linkProcessor Directly
1285-
* @see \Magento\CatalogImportExport\Model\Import\Product\linkProcessor::saveLinks
12861283
*
12871284
* @return $this
12881285
*/
@@ -1492,7 +1489,6 @@ private function getNewSkuFieldsForSelect()
14921489
* @return void
14931490
* @since 100.0.4
14941491
* @deprecated 100.2.3
1495-
* @see avoid using this function
14961492
*/
14971493
protected function initMediaGalleryResources()
14981494
{
@@ -2340,7 +2336,6 @@ protected function _saveStockItem()
23402336
$stockItem = $this->getRowExistingStockItem($rowData);
23412337
$existingStockItemData = $stockItem->getData();
23422338
$row = $this->formatStockDataForRow($rowData);
2343-
$row['explicit_qty'] = array_key_exists('qty', $rowData);
23442339
$productIdsToReindex[] = $row['product_id'];
23452340
$storeId = $this->getRowStoreId($rowData);
23462341
if (!empty(array_diff_assoc($row, $existingStockItemData))

app/code/Magento/CatalogImportExport/Model/StockItemImporter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public function import(array $stockData)
5050
$entityTable = $stockItemResource->getMainTable();
5151
try {
5252
$stockImportData = array_map(
53-
static function ($stockItemData) {
54-
unset($stockItemData['sku'], $stockItemData['explicit_qty']);
53+
function ($stockItemData) {
54+
unset($stockItemData['sku']);
5555
return $stockItemData;
5656
},
5757
array_values($stockData)

0 commit comments

Comments
 (0)