Commit b7860b30 authored by Felipe Artur's avatar Felipe Artur

fix milestones finder failing spec

parent 1e81c4be
......@@ -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