From 01496486382b90dd6642057370a9c710c80d2b41 Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Wed, 28 Jun 2017 13:45:27 -0500 Subject: [PATCH] Remove noteable ID and type from IssueEntity create_note_path --- app/serializers/issue_entity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/issue_entity.rb b/app/serializers/issue_entity.rb index e0a8cf7570a..fbdd9f94763 100644 --- a/app/serializers/issue_entity.rb +++ b/app/serializers/issue_entity.rb @@ -23,7 +23,7 @@ class IssueEntity < IssuableEntity end expose :create_note_path do |issue| - namespace_project_notes_path(issue.project.namespace, issue.project, target_type: 'issue', target_id: issue.id, note: { noteable_type: 'Issue', noteable_id: issue.id }) + namespace_project_notes_path(issue.project.namespace, issue.project, target_type: 'issue', target_id: issue.id) end expose :preview_note_path do |issue|