diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/board_issues_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/projects/board_lists_controller.rb | 4 | ||||
-rw-r--r-- | app/controllers/projects/boards_controller.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/projects/board_issues_controller.rb b/app/controllers/projects/board_issues_controller.rb index 297ad7b2941..aededeb8c0a 100644 --- a/app/controllers/projects/board_issues_controller.rb +++ b/app/controllers/projects/board_issues_controller.rb @@ -14,7 +14,7 @@ class Projects::BoardIssuesController < Projects::ApplicationController only: [:iid, :title, :confidential], include: { assignee: { only: [:id, :name, :username], methods: [:avatar_url] }, - labels: { only: [:id, :title, :color, :priority] } + labels: { only: [:id, :title, :description, :color, :priority] } }) end diff --git a/app/controllers/projects/board_lists_controller.rb b/app/controllers/projects/board_lists_controller.rb index 8491d5733c3..3cfb08d5822 100644 --- a/app/controllers/projects/board_lists_controller.rb +++ b/app/controllers/projects/board_lists_controller.rb @@ -9,7 +9,7 @@ class Projects::BoardListsController < Projects::ApplicationController list = Boards::Lists::CreateService.new(project, current_user, list_params).execute if list.valid? - render json: list.as_json(only: [:id, :list_type, :position], methods: [:title], include: { label: { only: [:id, :title, :color, :priority] } }) + render json: list.as_json(only: [:id, :list_type, :position], methods: [:title], include: { label: { only: [:id, :title, :description, :color, :priority] } }) else render json: list.errors, status: :unprocessable_entity end @@ -39,7 +39,7 @@ class Projects::BoardListsController < Projects::ApplicationController service = Boards::Lists::GenerateService.new(project, current_user) if service.execute - render json: project.board.lists.label.as_json(only: [:id, :list_type, :position], methods: [:title], include: { label: { only: [:id, :title, :color, :priority] } }) + render json: project.board.lists.label.as_json(only: [:id, :list_type, :position], methods: [:title], include: { label: { only: [:id, :title, :description, :color, :priority] } }) else head :unprocessable_entity end diff --git a/app/controllers/projects/boards_controller.rb b/app/controllers/projects/boards_controller.rb index 862d09fee19..052c15f99d0 100644 --- a/app/controllers/projects/boards_controller.rb +++ b/app/controllers/projects/boards_controller.rb @@ -6,7 +6,7 @@ class Projects::BoardsController < Projects::ApplicationController respond_to do |format| format.html - format.json { render json: board.lists.as_json(only: [:id, :list_type, :position], methods: [:title], include: { label: { only: [:id, :title, :color, :priority] } }) } + format.json { render json: board.lists.as_json(only: [:id, :list_type, :position], methods: [:title], include: { label: { only: [:id, :title, :description, :color, :priority] } }) } end end |