BigW Consortium Gitlab

Add :weight as an allowed serializable field in app/controllers/boards/issues_controller.rb

Signed-off-by: 's avatarRémy Coutable <remy@rymai.me>
parent 357aaafb
...@@ -94,7 +94,7 @@ module Boards ...@@ -94,7 +94,7 @@ module Boards
def serialize_as_json(resource) def serialize_as_json(resource)
resource.as_json( resource.as_json(
only: [:id, :iid, :project_id, :title, :confidential, :due_date, :relative_position], only: [:id, :iid, :project_id, :title, :confidential, :due_date, :relative_position, :weight],
labels: true, labels: true,
issue_endpoints: true, issue_endpoints: true,
include_full_project_path: board.group_board?, include_full_project_path: board.group_board?,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment