Browse Source

fix

pull/342/head
yystopf 3 years ago
parent
commit
61c23b137f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/api/v1/issues/list_service.rb

+ 1
- 1
app/services/api/v1/issues/list_service.rb 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


Loading…
Cancel
Save