This commit is contained in:
yystopf 2023-03-09 09:23:49 +08:00
parent 9c85fdfeaf
commit 43cbb9cf4f
1 changed files with 1 additions and 1 deletions

View File

@ -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