From: Sven Schöling Date: Thu, 15 Nov 2012 14:13:41 +0000 (+0100) Subject: action_report zu den anderen actions verschoben X-Git-Tag: release-3.1.0beta1~735 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1ad93745368f258c10afb5684bc4739942efd7cd;p=kivitendo-erp.git action_report zu den anderen actions verschoben --- 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 {