$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
#
}
$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 {