From e78a50fca24269c2fc4d516f9064389732147ae1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 17 Jun 2016 14:45:36 +0200 Subject: [PATCH] CsvImport::Base: benutzte header korrekt setzen --- SL/Controller/CsvImport/Base.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/CsvImport/Base.pm b/SL/Controller/CsvImport/Base.pm index 69060262b..66cbfce1c 100644 --- a/SL/Controller/CsvImport/Base.pm +++ b/SL/Controller/CsvImport/Base.pm @@ -54,7 +54,7 @@ sub run { return if ( !$self->csv->header || $self->csv->errors ); - my $headers = { headers => [ map {; $_->{key} } @{ $self->csv->specs->[0] } ] }; + my $headers = { headers => [ grep { $self->csv->dispatcher->is_known($_, 0) } @{ $self->csv->header } ] }; $headers->{methods} = [ map { $_->{path} } @{ $self->csv->specs->[0] } ]; $headers->{used} = { map { ($_ => 1) } @{ $headers->{headers} } }; $self->controller->headers($headers); -- 2.20.1