Skip to content

Commit

Permalink
Resolved undefined index issue for import adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimin-ktpl committed Dec 14, 2018
1 parent b8892f0 commit 6b9aa47
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ protected function _saveValidatedBunches()
if ($source->valid()) {
try {
$rowData = $source->current();
$skuSet[$rowData['sku']] = true;
if (array_key_exists('sku', $rowData)) {
$skuSet[$rowData['sku']] = true;
}
} catch (\InvalidArgumentException $e) {
$this->addRowError($e->getMessage(), $this->_processedRowsCount);
$this->_processedRowsCount++;
Expand Down

0 comments on commit 6b9aa47

Please sign in to comment.