From d375da0ee62892cdea8bf08a02c31b0985d39b8b Mon Sep 17 00:00:00 2001 From: Paul Hachmang Date: Mon, 5 May 2014 13:40:44 +0200 Subject: [PATCH] [BUGFIX] If all the rows are skipped, it will throw an error (because there are import rows, but those are skipped). --- app/code/community/Ho/Import/Model/Import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/Ho/Import/Model/Import.php b/app/code/community/Ho/Import/Model/Import.php index 087c64c..7259590 100644 --- a/app/code/community/Ho/Import/Model/Import.php +++ b/app/code/community/Ho/Import/Model/Import.php @@ -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);