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
Léo-Paul Géneau
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
Hide 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
...
@@ -93,7 +93,7 @@ class Projects::CommitController < Projects::ApplicationController
end
end
def
commit
def
commit
@commit
||=
@project
.
commit
(
params
[
:id
])
@
noteable
=
@
commit
||=
@project
.
commit
(
params
[
:id
])
end
end
def
pipelines
def
pipelines
...
...
app/controllers/projects/issues_controller.rb
View file @
ccd44546
...
@@ -176,11 +176,12 @@ class Projects::IssuesController < Projects::ApplicationController
...
@@ -176,11 +176,12 @@ class Projects::IssuesController < Projects::ApplicationController
protected
protected
def
issue
def
issue
@issue
||=
begin
@noteable
=
@issue
||=
@project
.
issues
.
find_by!
(
iid:
params
[
:id
])
begin
rescue
ActiveRecord
::
RecordNotFound
@project
.
issues
.
find_by!
(
iid:
params
[
:id
])
redirect_old
rescue
ActiveRecord
::
RecordNotFound
end
redirect_old
end
end
end
alias_method
:subscribable_resource
,
:issue
alias_method
:subscribable_resource
,
:issue
alias_method
:issuable
,
:issue
alias_method
:issuable
,
:issue
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
ccd44546
...
@@ -324,7 +324,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
...
@@ -324,7 +324,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end
end
def
merge_request
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
end
alias_method
:subscribable_resource
,
:merge_request
alias_method
:subscribable_resource
,
:merge_request
alias_method
:issuable
,
: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