File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
CatalogImportExport/Model/Import
ImportExport/Model/Import Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -1158,6 +1158,7 @@ protected function _saveProductsData()
1158
1158
if ($ this ->_replaceFlag ) {
1159
1159
$ this ->getOptionEntity ()->clearProductsSkuToId ();
1160
1160
}
1161
+ $ this ->getOptionEntity ()->setIds ($ this ->getIds ());
1161
1162
$ this ->getOptionEntity ()->importData ();
1162
1163
return $ this ;
1163
1164
}
Original file line number Diff line number Diff line change @@ -1256,7 +1256,7 @@ protected function _importData()
1256
1256
$ prevOptionId = 0 ;
1257
1257
$ optionId = null ;
1258
1258
$ valueId = null ;
1259
- while ($ bunch = $ this ->_dataSourceModel ->getNextBunch ( )) {
1259
+ while ($ bunch = $ this ->_dataSourceModel ->getNextUniqueBunch ( $ this -> getIds () )) {
1260
1260
$ products = [];
1261
1261
$ options = [];
1262
1262
$ titles = [];
Original file line number Diff line number Diff line change @@ -421,9 +421,7 @@ protected function _saveValidatedBunches()
421
421
$ startNewBunch = false ;
422
422
423
423
$ source ->rewind ();
424
- if ($ source instanceof Base64EncodedCsvData) {
425
- $ this ->_dataSourceModel ->cleanProcessedBunches ();
426
- } else {
424
+ if (!$ source instanceof Base64EncodedCsvData) {
427
425
$ this ->_dataSourceModel ->cleanBunches ();
428
426
}
429
427
$ mainAttributeCode = $ this ->getMasterAttributeCode ();
Original file line number Diff line number Diff line change @@ -395,9 +395,7 @@ protected function _saveValidatedBunches()
395
395
$ skuSet = [];
396
396
397
397
$ source ->rewind ();
398
- if ($ source instanceof Base64EncodedCsvData) {
399
- $ this ->_dataSourceModel ->cleanProcessedBunches ();
400
- } else {
398
+ if (!$ source instanceof Base64EncodedCsvData) {
401
399
$ this ->_dataSourceModel ->cleanBunches ();
402
400
}
403
401
@@ -911,4 +909,9 @@ public function getIds()
911
909
{
912
910
return $ this ->ids ;
913
911
}
912
+
913
+ public function setIds ($ ids )
914
+ {
915
+ $ this ->ids = $ ids ;
916
+ }
914
917
}
You can’t perform that action at this time.
0 commit comments