X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/81fed28305f28aff317639f9a190cdf83a678ed4..a54fc3925496fe0cda2c6ba6d4a8d748d0035a50:/SL/Helper/Csv/Dispatcher.pm diff --git a/SL/Helper/Csv/Dispatcher.pm b/SL/Helper/Csv/Dispatcher.pm index be3faddd6..add444b9d 100644 --- a/SL/Helper/Csv/Dispatcher.pm +++ b/SL/Helper/Csv/Dispatcher.pm @@ -78,7 +78,11 @@ sub parse_profile { $self->unknown_column($col, undef); } } else { - push @specs, $self->make_spec($col, $profile->{$col} || $col); + if (exists $profile->{$col}) { + push @specs, $self->make_spec($col, $profile->{$col}); + } else { + push @specs, $self->make_spec($col, $col); + } } } @@ -91,6 +95,9 @@ sub make_spec { my ($self, $col, $path) = @_; my $spec = { key => $col, steps => [] }; + + return unless $path; + my $cur_class = $self->_csv->class; return unless $cur_class;