From 70e00e04a44be5c1a53e4477a25354ecb2d5c1b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 9 Jun 2021 13:01:27 +0200 Subject: [PATCH] Csv-Import-Controller: Richtiges Feld f. Zeile bei Fehlermeldung des Csv-Helper MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Evtl. war hier tatsächlich das erste Feld [0] gemeint, das wäre der "raw_input", aber der ist oft leer. Da ergibt die Zeilenummer mehr Sinn. --- SL/Controller/CsvImport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/CsvImport.pm b/SL/Controller/CsvImport.pm index b95f6fc6d..06f4bc2cc 100644 --- a/SL/Controller/CsvImport.pm +++ b/SL/Controller/CsvImport.pm @@ -104,7 +104,7 @@ sub action_result { $self->profile($profile); if ($data->{errors} and my $first_error = $data->{errors}->[0]) { - flash('error', $::locale->text('There was an error parsing the csv file: #1 in line #2.', $first_error->[2], $first_error->[0])); + flash('error', $::locale->text('There was an error parsing the csv file: #1 in line #2.', $first_error->[2], $first_error->[4])); } if ($data->{progress}{finished} || $data->{errors}) { -- 2.20.1