summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2016-10-19 20:42:35 +0200
committerAdam Niedzielski <adamsunday@gmail.com>2016-10-20 15:22:04 +0200
commit474313e44034882122c60329b7c72b0f31cac45b (patch)
treeb21fd77e9287d0bc5841771755144d34239cd26a /app
parent2e411b5ea0faf733aa457ecc28064bb48f07deed (diff)
downloadgitlab-ce-474313e44034882122c60329b7c72b0f31cac45b.tar.gz
Fix GitLab project import when a user has access only to their default namespace.pass-namespace-gitlab-project-import
Render a hidden field with namespace ID so it can be read by JavaScript and passed to "/import/gitlab_project/new" screen.
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/new.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index cc8cb134fb8..399ccf15b7f 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -27,6 +27,7 @@
- else
.input-group-addon.static-namespace
#{root_url}#{current_user.username}/
+ = f.hidden_field :namespace_id, value: current_user.namespace_id
.form-group.col-xs-12.col-sm-6.project-path
= f.label :namespace_id, class: 'label-light' do
%span