CsvImportReport: Manager-Methode destroy löscht nicht aus aktiver Sitzung
[kivitendo-erp.git] / SL / DB / Manager / CsvImportReport.pm
index f5ce9b9..0868767 100644 (file)
@@ -19,18 +19,6 @@ sub cleanup {
   ]);
 
   $_->destroy for @$objects;
-
-  # get reports for the active session that aren't the latest
-  $objects = $self->get_all(
-    query => [ session_id => $::auth->get_session_id, ],
-    sort_by => [ 'id' ],
-  );
-
-  # skip the last one
-  for (0 .. $#$objects - 1) {
-    $objects->[$_]->destroy;
-  }
 }
 
 1;
-