From c62cad0a5049061e50f81d931363d84c142690de Mon Sep 17 00:00:00 2001 From: Daniel Berthereau Date: Mon, 20 Sep 2021 00:00:00 +0000 Subject: [PATCH] Fixed import when there are empty rows. --- src/Source/AbstractSpreadsheet.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Source/AbstractSpreadsheet.php b/src/Source/AbstractSpreadsheet.php index 39d6861..dd53cf4 100644 --- a/src/Source/AbstractSpreadsheet.php +++ b/src/Source/AbstractSpreadsheet.php @@ -152,6 +152,10 @@ protected function prepareIterator() $this->reader = ReaderEntityFactory::createODSReader(); break; } + + // Important, else next rows will be skipped. + $this->reader->setShouldPreserveEmptyRows(true); + try { $this->reader->open($this->source); } catch (\Box\Spout\Common\Exception\IOException $e) {