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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5779f04b
Commit
5779f04b
authored
Nov 21, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'ce/8-2-stable' into 8-2-stable-ee
parents
85d76e66
53c0b621
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
app/controllers/projects/notes_controller.rb
app/controllers/projects/notes_controller.rb
+5
-2
No files found.
app/controllers/projects/notes_controller.rb
View file @
5779f04b
...
@@ -59,8 +59,11 @@ class Projects::NotesController < Projects::ApplicationController
...
@@ -59,8 +59,11 @@ class Projects::NotesController < Projects::ApplicationController
end
end
def
award_toggle
def
award_toggle
noteable
=
note_params
[
:noteable_type
]
==
"issue"
?
Issue
:
MergeRequest
noteable
=
if
note_params
[
:noteable_type
]
==
"issue"
noteable
=
noteable
.
find_by!
(
id:
note_params
[
:noteable_id
],
project:
project
)
project
.
issues
.
find
(
note_params
[
:noteable_id
])
else
project
.
merge_requests
.
find
(
note_params
[
:noteable_id
])
end
data
=
{
data
=
{
author:
current_user
,
author:
current_user
,
...
...
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