X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6f45549b6f3d1f4f178b8799c9997fdc6e1447d0..e95294b56b3e6b51c96f35add267b4dc58fe47d7:/SL/Controller/CsvImport/Base.pm?ds=sidebyside diff --git a/SL/Controller/CsvImport/Base.pm b/SL/Controller/CsvImport/Base.pm index 09a488617..5da5fc290 100644 --- a/SL/Controller/CsvImport/Base.pm +++ b/SL/Controller/CsvImport/Base.pm @@ -18,7 +18,7 @@ use parent qw(Rose::Object); use Rose::Object::MakeMethods::Generic ( scalar => [ qw(controller file csv test_run save_with_cascade) ], - 'scalar --get_set_init' => [ qw(is_multiplexed profile displayable_columns existing_objects class manager_class cvar_columns all_cvar_configs all_languages payment_terms_by all_currencies default_currency_id all_vc vc_by) ], + 'scalar --get_set_init' => [ qw(profile displayable_columns existing_objects class manager_class cvar_columns all_cvar_configs all_languages payment_terms_by all_currencies default_currency_id all_vc vc_by) ], ); sub run { @@ -47,15 +47,11 @@ sub run { $self->controller->track_progress(progress => 50); - if ($self->csv->is_multiplexed) { - die "controller for multiplex data is not implemented yet"; - } - $self->controller->errors([ $self->csv->errors ]) if $self->csv->errors; return if ( !$self->csv->header || $self->csv->errors ); - my $headers = { headers => [ grep { $profile->{$_} } @{ $self->csv->header->[0] } ] }; + my $headers = { headers => [ grep { $profile->{$_} } @{ $self->csv->header } ] }; $headers->{methods} = [ map { $profile->{$_} } @{ $headers->{headers} } ]; $headers->{used} = { map { ($_ => 1) } @{ $headers->{headers} } }; $self->controller->headers($headers); @@ -311,11 +307,7 @@ sub init_manager_class { $self->manager_class("SL::DB::Manager::" . $1); } -sub init_is_multiplexed { - my ($self) = @_; - - $self->is_multiplexed('ARRAY' eq ref ($self->class) && scalar @{ $self->class } > 1); -} +sub is_multiplexed { 0 } sub check_objects { }