Skip to content

Commit

Permalink
[BUGFIX] If all the rows are skipped, it will throw an error (because…
Browse files Browse the repository at this point in the history
… there are import rows, but those are skipped).
  • Loading branch information
paales committed May 5, 2014
1 parent 2235745 commit d375da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/community/Ho/Import/Model/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ protected function _createImportCsv()
$result = $this->_fieldMapItem($preparedItem);

foreach ($result as $row) {
$rowCount++;
$exportAdapter->writeRow(array_merge($fieldNames, $row));
}
}

$rowCount++;
$sourceAdapter->next();
}
$this->setRowCount($rowCount);
Expand Down

0 comments on commit d375da0

Please sign in to comment.