@@ -181,7 +181,7 @@ class Import extends \Magento\ImportExport\Model\AbstractModel
181
181
* @param Source\Import\Behavior\Factory $behaviorFactory
182
182
* @param \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
183
183
* @param History $importHistoryModel
184
- * @param \Magento\Framework\Stdlib\DateTime\DateTime
184
+ * @param \Magento\Framework\Stdlib\DateTime\DateTime $localeDate
185
185
* @param array $data
186
186
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
187
187
*/
@@ -443,6 +443,8 @@ public function importSource()
443
443
}
444
444
445
445
/**
446
+ * Processing of import.
447
+ *
446
448
* @return bool
447
449
* @throws \Magento\Framework\Exception\LocalizedException
448
450
*/
@@ -462,6 +464,8 @@ public function isImportAllowed()
462
464
}
463
465
464
466
/**
467
+ * Get error aggregator instance.
468
+ *
465
469
* @return ProcessingErrorAggregatorInterface
466
470
* @throws \Magento\Framework\Exception\LocalizedException
467
471
*/
@@ -585,6 +589,11 @@ public function validateSource(\Magento\ImportExport\Model\Import\AbstractSource
585
589
$ this ->addLogComment ($ messages );
586
590
587
591
$ result = !$ errorAggregator ->getErrorsCount ();
592
+ $ validationStrategy = $ this ->getData (self ::FIELD_NAME_VALIDATION_STRATEGY );
593
+ if ($ validationStrategy === ProcessingErrorAggregatorInterface::VALIDATION_STRATEGY_SKIP_ERRORS ) {
594
+ $ result = true ;
595
+ }
596
+
588
597
if ($ result ) {
589
598
$ this ->addLogComment (__ ('Import data validation is complete. ' ));
590
599
}
@@ -710,9 +719,9 @@ public function isReportEntityType($entity = null)
710
719
/**
711
720
* Create history report
712
721
*
722
+ * @param string $sourceFileRelative
713
723
* @param string $entity
714
724
* @param string $extension
715
- * @param string $sourceFileRelative
716
725
* @param array $result
717
726
* @return $this
718
727
* @throws \Magento\Framework\Exception\LocalizedException
0 commit comments