action_report zu den anderen actions verschoben
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 15 Nov 2012 14:13:41 +0000 (15:13 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 11 Jan 2013 12:57:03 +0000 (13:57 +0100)
SL/Controller/CsvImport.pm

index 9e2c096..afa4adf 100644 (file)
@@ -116,6 +116,15 @@ sub action_download_sample {
   $self->send_file($file->file_name, name => $file_name);
 }
 
+sub action_report {
+  my ($self, %params) = @_;
+
+  $self->{report} = SL::DB::Manager::CsvImportReport->find_by(id => $params{report_id} || $::form->{id});
+
+  $self->render('csv_import/report', { no_layout => $params{no_layout} });
+}
+
+
 #
 # filters
 #
@@ -364,14 +373,8 @@ sub save_report {
   }
 
   $dbh->commit;
-}
-
-sub action_report {
-  my ($self) = @_;
-
-  $self->{report} = SL::DB::Manager::CsvImportReport->find_by(id => $::form->{id});
 
-  $self->render('csv_import/report');
+  return $report->id;
 }
 
 sub csv_file_name {