File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
app/code/Magento/CustomerImportExport/Model
ResourceModel/Import/CustomerComposite Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -534,6 +534,9 @@ protected function _importData()
534
534
$ deleteRowIds = [];
535
535
536
536
foreach ($ bunch as $ rowNumber => $ rowData ) {
537
+ if (!isset ($ rowData ['_website ' ])) {
538
+ continue ;
539
+ }
537
540
// check row data
538
541
if ($ this ->_isOptionalAddressEmpty ($ rowData ) || !$ this ->validateRow ($ rowData , $ rowNumber )) {
539
542
continue ;
Original file line number Diff line number Diff line change @@ -519,6 +519,9 @@ protected function _importData()
519
519
$ attributesToSave = [];
520
520
521
521
foreach ($ bunch as $ rowNumber => $ rowData ) {
522
+ if (!isset ($ rowData ['_website ' ])) {
523
+ continue ;
524
+ }
522
525
if (!$ this ->validateRow ($ rowData , $ rowNumber )) {
523
526
continue ;
524
527
}
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function getNextUniqueBunch($ids = null)
80
80
protected function _prepareRow (array $ rowData )
81
81
{
82
82
$ entityCustomer = CustomerComposite::COMPONENT_ENTITY_CUSTOMER ;
83
- if ($ this ->_entityType == $ entityCustomer ) {
83
+ if (( isset ( $ rowData [ ' _scope ' ])) && $ this ->_entityType == $ entityCustomer ) {
84
84
if ($ rowData ['_scope ' ] == CustomerComposite::SCOPE_DEFAULT ) {
85
85
return $ rowData ;
86
86
} else {
You can’t perform that action at this time.
0 commit comments