Skip to content

Commit d444344

Browse files
author
Sergey Shvets
committed
MAGETWO-97345: [Magento Cloud] Import doesn't work with skip error entries
1 parent f27036f commit d444344

File tree

1 file changed

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

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2569,7 +2569,12 @@ public function validateRow(array $rowData, $rowNum)
25692569
$newFromTimestamp = strtotime($this->dateTime->formatDate($rowData[self::COL_NEW_FROM_DATE], false));
25702570
$newToTimestamp = strtotime($this->dateTime->formatDate($rowData[self::COL_NEW_TO_DATE], false));
25712571
if ($newFromTimestamp > $newToTimestamp) {
2572-
$this->skipRow($rowNum, ValidatorInterface::ERROR_NEW_TO_DATE, $errorLevel, $rowData[self::COL_NEW_TO_DATE]);
2572+
$this->skipRow(
2573+
$rowNum,
2574+
ValidatorInterface::ERROR_NEW_TO_DATE,
2575+
$errorLevel,
2576+
$rowData[self::COL_NEW_TO_DATE]
2577+
);
25732578
}
25742579
}
25752580

0 commit comments

Comments
 (0)