From f01bf6359050e913b1907f1d9c5d197e7c8c2835 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 7 Nov 2012 17:04:35 +0100 Subject: [PATCH] CsvImport: CVars case insensitive parsen lassen --- SL/Controller/CsvImport/Base.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SL/Controller/CsvImport/Base.pm b/SL/Controller/CsvImport/Base.pm index f84d54b0e..656495e37 100644 --- a/SL/Controller/CsvImport/Base.pm +++ b/SL/Controller/CsvImport/Base.pm @@ -29,6 +29,7 @@ sub run { profile => $profile, ignore_unknown_columns => 1, strict_profile => 1, + case_insensitive_header => 1, map { ( $_ => $self->controller->profile->get($_) ) } qw(sep_char escape_char quote_char), )); @@ -212,6 +213,12 @@ sub init_profile { $profile{$col} = $name; } + if ($self->can('all_cvar_configs')) { + for (@{ $self->all_cvar_configs }) { + $profile{ 'cvar_' . $_->name } = ''; + } + } + $self->profile(\%profile); } -- 2.20.1