mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #1051
This commit is contained in:
parent
044af254f3
commit
9264f1e9b9
@ -80,6 +80,7 @@ class CsvProcessor implements FileProcessorInterface
|
|||||||
Log::debug(sprintf('Number of entries: %d', $entries->count()));
|
Log::debug(sprintf('Number of entries: %d', $entries->count()));
|
||||||
$notImported = $entries->filter(
|
$notImported = $entries->filter(
|
||||||
function (array $row, int $index) {
|
function (array $row, int $index) {
|
||||||
|
$row = array_values($row);
|
||||||
if ($this->rowAlreadyImported($row)) {
|
if ($this->rowAlreadyImported($row)) {
|
||||||
$message = sprintf('Row #%d has already been imported.', $index);
|
$message = sprintf('Row #%d has already been imported.', $index);
|
||||||
$this->job->addError($index, $message);
|
$this->job->addError($index, $message);
|
||||||
@ -241,6 +242,7 @@ class CsvProcessor implements FileProcessorInterface
|
|||||||
*/
|
*/
|
||||||
private function importRow(int $index, array $row): ImportJournal
|
private function importRow(int $index, array $row): ImportJournal
|
||||||
{
|
{
|
||||||
|
$row = array_values($row);
|
||||||
Log::debug(sprintf('Now at row %d', $index));
|
Log::debug(sprintf('Now at row %d', $index));
|
||||||
$row = $this->specifics($row);
|
$row = $this->specifics($row);
|
||||||
$hash = $this->getRowHash($row);
|
$hash = $this->getRowHash($row);
|
||||||
|
Loading…
Reference in New Issue
Block a user