X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/dccc54aac0eadf75ce892976a0ec53b142291b26..07ad0fee6523cc8d9272dcb847a79f899fdeaf67:/SL/Controller/CsvImport/Base.pm diff --git a/SL/Controller/CsvImport/Base.pm b/SL/Controller/CsvImport/Base.pm index e865a8612..e85429121 100644 --- a/SL/Controller/CsvImport/Base.pm +++ b/SL/Controller/CsvImport/Base.pm @@ -51,8 +51,11 @@ sub init_profile { eval "require " . $self->class; + my %unwanted = map { ( $_ => 1 ) } (qw(itime mtime), map { $_->name } @{ $self->class->meta->primary_key_columns }); my %profile; for my $col ($self->class->meta->columns) { + next if $unwanted{$col}; + my $name = $col->isa('Rose::DB::Object::Metadata::Column::Numeric') ? "$col\_as_number" : $col->isa('Rose::DB::Object::Metadata::Column::Date') ? "$col\_as_date" : $col->isa('Rose::DB::Object::Metadata::Column::Timestamp') ? "$col\_as_date"