mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 21:56:19 +10:00
Sorting Milestones on the auto complete list by due date and title
This commit is contained in:
@@ -5,7 +5,7 @@ module Projects
|
||||
end
|
||||
|
||||
def milestones
|
||||
@project.milestones.active.select([:iid, :title])
|
||||
@project.milestones.active.reorder(due_date: :asc, title: :asc).select([:iid, :title])
|
||||
end
|
||||
|
||||
def merge_requests
|
||||
|
||||
Reference in New Issue
Block a user