This commit is contained in:
yystopf 2023-02-23 15:26:30 +08:00
parent dc9ca7d0ca
commit 1fcdbe9dce
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class Api::V1::Issues::MilestonesController < Api::V1::BaseController
@closed_milestone_count = @milestones.closed.size @closed_milestone_count = @milestones.closed.size
@opening_milestone_count = @milestones.opening.size @opening_milestone_count = @milestones.opening.size
@milestones = params[:category] == "closed" ? @milestones.closed : @milestones.opening @milestones = params[:category] == "closed" ? @milestones.closed : @milestones.opening
@milestones = milestones.order("#{sort_by} #{sort_direction}") @milestones = @milestones.order("#{sort_by} #{sort_direction}")
if params[:only_name] if params[:only_name]
@milestones = @milestones.select(:id, :name) @milestones = @milestones.select(:id, :name)
@milestones = kaminary_select_paginate(@milestones) @milestones = kaminary_select_paginate(@milestones)