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
Boxiang Sun
gitlab-ce
Commits
f7240e03
Commit
f7240e03
authored
Jan 15, 2016
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix autocomplete for new issues/MRs/snippets
parent
f093d8cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+1
-1
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+1
-0
app/controllers/projects/snippets_controller.rb
app/controllers/projects/snippets_controller.rb
+1
-1
No files found.
app/controllers/projects/issues_controller.rb
View file @
f7240e03
...
...
@@ -49,7 +49,7 @@ class Projects::IssuesController < Projects::ApplicationController
assignee_id:
""
)
@issue
=
@project
.
issues
.
new
(
issue_params
)
@issue
=
@
noteable
=
@
project
.
issues
.
new
(
issue_params
)
respond_with
(
@issue
)
end
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
f7240e03
...
...
@@ -90,6 +90,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
def
new
params
[
:merge_request
]
||=
ActionController
::
Parameters
.
new
(
source_project:
@project
)
@merge_request
=
MergeRequests
::
BuildService
.
new
(
project
,
current_user
,
merge_request_params
).
execute
@noteable
=
@merge_request
@target_branches
=
if
@merge_request
.
target_project
@merge_request
.
target_project
.
repository
.
branch_names
...
...
app/controllers/projects/snippets_controller.rb
View file @
f7240e03
...
...
@@ -25,7 +25,7 @@ class Projects::SnippetsController < Projects::ApplicationController
end
def
new
@snippet
=
@project
.
snippets
.
build
@snippet
=
@
noteable
=
@
project
.
snippets
.
build
end
def
create
...
...
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