Skip to content

Firefly III: a personal finances manager

Fix #1051

James Cole9264f1e9b9ce
diff --git a/app/Import/FileProcessor/CsvProcessor.php b/app/Import/FileProcessor/CsvProcessor.php
index 9a21cfc9da..daa985f973 100644
--- a/app/Import/FileProcessor/CsvProcessor.php
+++ b/app/Import/FileProcessor/CsvProcessor.php
@@ -80,6 +80,7 @@ class CsvProcessor implements FileProcessorInterface
Log::debug(sprintf('Number of entries: %d', $entries->count()));
$notImported = $entries->filter(
function (array $row, int $index) {
+ $row = array_values($row);
if ($this->rowAlreadyImported($row)) {
$message = sprintf('Row #%d has already been imported.', $index);
$this->job->addError($index, $message);
@@ -241,6 +242,7 @@ class CsvProcessor implements FileProcessorInterface
*/
private function importRow(int $index, array $row): ImportJournal
{
+ $row = array_values($row);
Log::debug(sprintf('Now at row %d', $index));
$row = $this->specifics($row);
$hash = $this->getRowHash($row);