Commit e7d18a17 authored by Mike Greiling's avatar Mike Greiling

Merge branch 'issue_34852' into 'master'

fix milestones finder failing spec

Closes #34852

See merge request !12727
parents 1e81c4be b7860b30
......@@ -49,7 +49,8 @@ class MilestonesFinder
if params.has_key?(:order)
items.reorder(params[:order])
else
items.reorder('due_date ASC')
order_statement = Gitlab::Database.nulls_last_order('due_date', 'ASC')
items.reorder(order_statement)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment