Skip to content

Commit 3b04ce6

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

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2879,7 +2879,7 @@ private function formatStockDataForRow(array $rowData): array
28792879
: $this->stockStateProvider->verifyStock($stockItemDo);
28802880
if ($this->stockStateProvider->verifyNotification($stockItemDo)) {
28812881
$date = $this->dateTimeFactory->create('now', new \DateTimeZone('UTC'));
2882-
$row['low_stock_date'] = $date->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT);
2882+
$row['low_stock_date'] = $date->format(DateTime::DATETIME_PHP_FORMAT);
28832883
}
28842884
$row['stock_status_changed_auto'] = (int)!$this->stockStateProvider->verifyStock($stockItemDo);
28852885
} else {

0 commit comments

Comments
 (0)