We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 58cca27 + 48ef09e commit a63107eCopy full SHA for a63107e
1 file changed
models/CsvImport/Import.php
@@ -678,6 +678,20 @@ protected function _undoImportLoop()
678
*/
679
protected function _addItemFromRow($row)
680
{
681
+ // check if this row is all blank cells
682
+ $blank = TRUE;
683
+ foreach ($row as $value) {
684
+ if (trim($value) !== '') {
685
+ $blank = FALSE;
686
+ break;
687
+ }
688
689
+ // if nothing but blank cells, skip this row
690
+ if ($blank) {
691
+ $this->_log('Blank row.', Zend_Log::ERR);
692
+ return FALSE;
693
694
+
695
$result = $this->getColumnMaps()->map($row);
696
$tags = $result[CsvImport_ColumnMap::TYPE_TAG];
697
$itemMetadata = array(
0 commit comments