Merge branch 'issue_34852' into 'master'
fix milestones finder failing spec Closes #34852 See merge request !12727
This commit is contained in:
commit
e7d18a17b4
1 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,8 @@ class MilestonesFinder
|
||||||
if params.has_key?(:order)
|
if params.has_key?(:order)
|
||||||
items.reorder(params[:order])
|
items.reorder(params[:order])
|
||||||
else
|
else
|
||||||
items.reorder('due_date ASC')
|
order_statement = Gitlab::Database.nulls_last_order('due_date', 'ASC')
|
||||||
|
items.reorder(order_statement)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue