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