Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
672bd4e6
Commit
672bd4e6
authored
May 20, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly sends project ID
parent
8536c49f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/controllers/autocomplete_controller.rb
app/controllers/autocomplete_controller.rb
+1
-1
app/views/shared/issuable/_form.html.haml
app/views/shared/issuable/_form.html.haml
+1
-1
spec/features/issues/move_spec.rb
spec/features/issues/move_spec.rb
+1
-1
No files found.
app/controllers/autocomplete_controller.rb
View file @
672bd4e6
...
...
@@ -40,7 +40,7 @@ class AutocompleteController < ApplicationController
end
no_project
=
OpenStruct
.
new
(
id:
0
,
name_with_namespace:
'No project'
)
projects
.
unshift
(
no_project
.
marshal_dump
)
projects
.
unshift
(
no_project
.
to_h
)
projects
.
delete
(
project
)
render
json:
projects
.
to_json
(
only:
[
:id
,
:name_with_namespace
],
methods: :name_with_namespace
)
...
...
app/views/shared/issuable/_form.html.haml
View file @
672bd4e6
...
...
@@ -90,7 +90,7 @@
=
label_tag
:move_to_project_id
,
'Move'
,
class:
'control-label'
.col-sm-10
.issuable-form-select-holder
=
hidden_field_tag
:move_to_project_id
,
nil
,
class:
'js-move-dropdown'
,
data:
{
placeholder:
'Select project'
,
projects_url:
autocomplete_projects_path
(
project_id:
'1'
)
}
=
hidden_field_tag
:move_to_project_id
,
nil
,
class:
'js-move-dropdown'
,
data:
{
placeholder:
'Select project'
,
projects_url:
autocomplete_projects_path
(
project_id:
@project
.
id
)
}
%span
{
data:
{
toggle:
'tooltip'
,
placement:
'auto top'
},
style:
'cursor: default'
,
title:
'Moving an issue will copy the discussion to a different project and close it here. All participants will be notified of the new location.'
}
...
...
spec/features/issues/move_spec.rb
View file @
672bd4e6
...
...
@@ -47,7 +47,7 @@ feature 'issue move to another project' do
expect
(
page
).
to
have_content
(
issue
.
title
)
end
context
'
projects user does not have permission to move issue to exis
t'
,
js:
true
do
context
'
user does not have permission to move the issue to a projec
t'
,
js:
true
do
let!
(
:private_project
)
{
create
(
:project
,
:private
)
}
let
(
:another_project
)
{
create
(
:project
)
}
background
{
another_project
.
team
<<
[
user
,
:guest
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment