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/controllers/projects/issues_controller.rb | |
parent | 4fcff0bfa2f0d8b0a9f60e93bee807334557918f (diff) | |
download | gitlab-ce-907dd68e0a18e995dc5772c9bc8117aa150edc25.tar.gz |
Added move to project in issue inline edit form
[ci skip]
Diffstat (limited to 'app/controllers/projects/issues_controller.rb')
-rw-r--r-- | app/controllers/projects/issues_controller.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb index 46438e68d54..9d28a7ed85a 100644 --- a/app/controllers/projects/issues_controller.rb +++ b/app/controllers/projects/issues_controller.rb @@ -148,10 +148,7 @@ class Projects::IssuesController < Projects::ApplicationController format.json do if @issue.valid? - render json: @issue.to_json(methods: [:task_status, :task_status_short], - include: { milestone: {}, - assignees: { only: [:id, :name, :username], methods: [:avatar_url] }, - labels: { methods: :text_color } }) + render json: IssueSerializer.new.represent(@issue) else render json: { errors: @issue.errors.full_messages }, status: :unprocessable_entity end |