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
Jérome Perrin
gitlab-ce
Commits
ccd44546
Commit
ccd44546
authored
Aug 12, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix autocomplete on commit and issue/MR edit pages
parent
5a07b760
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
app/controllers/projects/commit_controller.rb
app/controllers/projects/commit_controller.rb
+1
-1
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+6
-5
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+1
-1
No files found.
app/controllers/projects/commit_controller.rb
View file @
ccd44546
...
...
@@ -93,7 +93,7 @@ class Projects::CommitController < Projects::ApplicationController
end
def
commit
@commit
||=
@project
.
commit
(
params
[
:id
])
@
noteable
=
@
commit
||=
@project
.
commit
(
params
[
:id
])
end
def
pipelines
...
...
app/controllers/projects/issues_controller.rb
View file @
ccd44546
...
...
@@ -176,7 +176,8 @@ class Projects::IssuesController < Projects::ApplicationController
protected
def
issue
@issue
||=
begin
@noteable
=
@issue
||=
begin
@project
.
issues
.
find_by!
(
iid:
params
[
:id
])
rescue
ActiveRecord
::
RecordNotFound
redirect_old
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
ccd44546
...
...
@@ -324,7 +324,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end
def
merge_request
@merge_request
||=
@project
.
merge_requests
.
find_by!
(
iid:
params
[
:id
])
@
issuable
=
@
merge_request
||=
@project
.
merge_requests
.
find_by!
(
iid:
params
[
:id
])
end
alias_method
:subscribable_resource
,
:merge_request
alias_method
:issuable
,
:merge_request
...
...
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