Skip to content
Snippets Groups Projects
Commit beddc374 authored by Adam Niedzielski's avatar Adam Niedzielski Committed by blackst0ne
Browse files

Fix GitLab project import when a user has access only to their default namespace.

Render a hidden field with namespace ID so it can be read by JavaScript
and passed to "/import/gitlab_project/new" screen.
parent a2aa1abb
No related branches found
No related tags found
1 merge request!9252Add merge request count to each issue on issues list
Loading
@@ -27,6 +27,7 @@
Loading
@@ -27,6 +27,7 @@
- else - else
.input-group-addon.static-namespace .input-group-addon.static-namespace
#{root_url}#{current_user.username}/ #{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 .form-group.col-xs-12.col-sm-6.project-path
= f.label :namespace_id, class: 'label-light' do = f.label :namespace_id, class: 'label-light' do
%span %span
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment