新增:select字段增加created_on
This commit is contained in:
parent
0830850518
commit
3769e13c1c
|
@ -10,7 +10,7 @@ class Api::V1::IssuesController < Api::V1::BaseController
|
|||
@opened_issues_count = @object_result[:opened_issues_count]
|
||||
@closed_issues_count = @object_result[:closed_issues_count]
|
||||
if params[:only_name].present?
|
||||
@issues = kaminary_select_paginate(@object_result[:data].select(:id, :subject, :project_issues_index, :updated_on))
|
||||
@issues = kaminary_select_paginate(@object_result[:data].select(:id, :subject, :project_issues_index, :updated_on, :created_on))
|
||||
else
|
||||
@issues = kaminari_paginate(@object_result[:data])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue