From 1ad93745368f258c10afb5684bc4739942efd7cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 15 Nov 2012 15:13:41 +0100 Subject: [PATCH] action_report zu den anderen actions verschoben --- SL/Controller/CsvImport.pm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/SL/Controller/CsvImport.pm b/SL/Controller/CsvImport.pm index 9e2c096b8..afa4adf76 100644 --- a/SL/Controller/CsvImport.pm +++ b/SL/Controller/CsvImport.pm @@ -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 { -- 2.20.1