File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
app/code/Magento/AdvancedPricingImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -673,18 +673,26 @@ private function getProductEntityLinkField()
673
673
/**
674
674
* @inheritdoc
675
675
*/
676
- public function validateData ()
676
+ protected function _saveValidatedBunches ()
677
677
{
678
- $ isDataValidated = $ this ->_dataValidated ;
679
- $ result = parent ::validateData ();
680
- if (!$ isDataValidated
681
- && $ this ->_dataValidated
682
- && \Magento \ImportExport \Model \Import::BEHAVIOR_APPEND === $ this ->getBehavior ()
678
+ if (\Magento \ImportExport \Model \Import::BEHAVIOR_APPEND === $ this ->getBehavior ()
683
679
&& !$ this ->_catalogData ->isPriceGlobal ()
684
680
) {
681
+ $ source = $ this ->_getSource ();
682
+ $ source ->rewind ();
683
+ while ($ source ->valid ()) {
684
+ try {
685
+ $ rowData = $ source ->current ();
686
+ } catch (\InvalidArgumentException $ exception ) {
687
+ $ source ->next ();
688
+ continue ;
689
+ }
690
+ $ this ->validateRow ($ rowData , $ source ->key ());
691
+ $ source ->next ();
692
+ }
685
693
$ this ->validateRowsForDuplicate (self ::TABLE_TIER_PRICE );
686
694
}
687
- return $ result ;
695
+ return parent :: _saveValidatedBunches () ;
688
696
}
689
697
690
698
/**
You can’t perform that action at this time.
0 commit comments