Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@gitlab.com>2018-09-17 13:52:49 +0300
committerDouwe Maan <douwe@gitlab.com>2018-09-17 13:52:49 +0300
commite72aeccdae4cdb35c3ab4941bcf3b4f0dd22d41b (patch)
treed06cf884ca34caed2fba77743b931ea6f521e14c /app/controllers/projects_controller.rb
parent78b3eea7d248c6d3c48b615c9df24a95cb5fd1d8 (diff)
Resolve "Unable to import repository: undefined method `import_file' for nil:NilClass"
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index e2f9d501c4b..64d9b16a041 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -196,7 +196,7 @@ class ProjectsController < Projects::ApplicationController
def download_export
if @project.export_file_exists?
- send_upload(@project.export_file)
+ send_upload(@project.export_file, attachment: @project.export_file.filename)
else
redirect_to(
edit_project_path(@project, anchor: 'js-export-project'),