]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/CsvImport.pm
cleanup nach jedem import
[mfinanz.git] / SL / Controller / CsvImport.pm
index 9d068c394d27893efc4c321fd459d8f4286c75e0..8834b2024ca455afc5e570ae51688130df285352 100644 (file)
@@ -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;