X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e5a690f9c51aab7ac96130cb11b9d4c740c84016..8ae2bc4fb4c72f3ac907a3e47c0cbd5da23f62c5:/SL/Controller/CsvImport.pm?ds=sidebyside diff --git a/SL/Controller/CsvImport.pm b/SL/Controller/CsvImport.pm index 9d068c394..8834b2024 100644 --- a/SL/Controller/CsvImport.pm +++ b/SL/Controller/CsvImport.pm @@ -38,6 +38,8 @@ __PACKAGE__->run_before('ensure_form_structure'); __PACKAGE__->run_before('check_type', except => [ qw(report) ]); __PACKAGE__->run_before('load_all_profiles'); +__PACKAGE__->run_after('cleanup_reports'); + # # actions # @@ -402,12 +404,6 @@ sub save_report { push @raw_methods, $self->raw_data_headers->{headers}->[$i]; } - $::lxdebug->dump(0, "methods", - [ \@info_methods, - \@methods, - \@raw_methods ] - ); - $sth->execute($report->id, $_, 0, $headers[$_]) for 0 .. $#headers; # col offsets @@ -468,4 +464,8 @@ sub track_progress { } +sub cleanup_reports { + SL::DB::Manager::CsvImportReport->cleanup; +} + 1;