Skip to content

Commit 001f7eb

Browse files
committed
MAGETWO-90729: Imported products are incorrectly in stock if 'allow_backorders' enabled
1 parent 16d903c commit 001f7eb

File tree

1 file changed

+2
-5
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -865,11 +865,8 @@ public function __construct(
865865
$string,
866866
$errorAggregator
867867
);
868-
$this->_optionEntity = isset(
869-
$data['option_entity']
870-
) ? $data['option_entity'] : $optionFactory->create(
871-
['data' => ['product_entity' => $this]]
872-
);
868+
$this->_optionEntity = $data['option_entity'] ??
869+
$optionFactory->create(['data' => ['product_entity' => $this]]);
873870
$this->_initAttributeSets()
874871
->_initTypeModels()
875872
->_initSkus()

0 commit comments

Comments
 (0)