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()
673673 /**
674674 * @inheritdoc
675675 */
676- public function validateData ()
676+ protected function _saveValidatedBunches ()
677677 {
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 ()
683679 && !$ this ->_catalogData ->isPriceGlobal ()
684680 ) {
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+ }
685693 $ this ->validateRowsForDuplicate (self ::TABLE_TIER_PRICE );
686694 }
687- return $ result ;
695+ return parent :: _saveValidatedBunches () ;
688696 }
689697
690698 /**
You can’t perform that action at this time.
0 commit comments