diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2018-02-15 02:52:36 +0300 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2018-02-20 22:06:13 +0300 |
commit | 2aacb7fb435f669aa3860c7220835f04e208188b (patch) | |
tree | b3cb088f3bcc6691e32e25b62fff323fc8256e1b /app/controllers/projects_controller.rb | |
parent | 088d03bfdbe336549dc449e03443a35cef620ffa (diff) |
Make import tab/form active when importing project by URL and validation fails
See https://gitlab.com/gitlab-org/gitlab-ce/issues/43261
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 72573e0765d..f437929bc85 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -45,7 +45,7 @@ class ProjectsController < Projects::ApplicationController notice: _("Project '%{project_name}' was successfully created.") % { project_name: @project.name } ) else - render 'new' + render 'new', locals: { active_tab: ('import' if project_params[:import_url].present?) } end end |