This commit is contained in:
parent
9c85fdfeaf
commit
43cbb9cf4f
|
@ -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].pluck(:id, :subject))
|
||||
@issues = kaminary_select_paginate(@object_result[:data].select(:id, :subject, :project_issues_index))
|
||||
else
|
||||
@issues = kaminari_paginate(@object_result[:data])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue