diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-17 13:01:24 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-17 13:01:24 +0100 |
commit | 907dd68e0a18e995dc5772c9bc8117aa150edc25 (patch) | |
tree | f44f01a72ac5b305f7a2fc0dd3c90b992c2db165 /app/serializers | |
parent | 4fcff0bfa2f0d8b0a9f60e93bee807334557918f (diff) | |
download | gitlab-ce-907dd68e0a18e995dc5772c9bc8117aa150edc25.tar.gz |
Added move to project in issue inline edit form
[ci skip]
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/issue_entity.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/serializers/issue_entity.rb b/app/serializers/issue_entity.rb index bc4f68710b2..6bc8d0f70c3 100644 --- a/app/serializers/issue_entity.rb +++ b/app/serializers/issue_entity.rb @@ -1,4 +1,6 @@ class IssueEntity < IssuableEntity + include RequestAwareEntity + expose :branch_name expose :confidential expose :assignees, using: API::Entities::UserBasic @@ -7,4 +9,8 @@ class IssueEntity < IssuableEntity expose :project_id expose :milestone, using: API::Entities::Milestone expose :labels, using: LabelEntity + + expose :path do |issue| + namespace_project_issue_path(issue.project.namespace, issue.project, issue) + end end |