This commit is contained in:
yystopf 2023-04-12 16:18:28 +08:00
parent 09d9f9a94e
commit 61c23b137f
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Api::V1::Issues::ListService < ApplicationService
if only_name.present?
scope = issues.select(:id, :subject, :project_issues_index, :updated_on, :created_on)
scope = scope.reorder("project_issues_index asc").distinct
scope = scope.reorder("#{sort_by} #{sort_direction}").distinct
else
scope = issues.includes(:priority, :issue_status, :user, :show_assigners, :show_issue_tags, :version, :comment_journals)
scope = scope.reorder("#{sort_by} #{sort_direction}").distinct