diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-07-07 19:21:00 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-07-07 19:21:00 -0300 |
commit | b7860b30aa4cf9d6b40ef2766912b366d916a9c7 (patch) | |
tree | 705cff160eb6a651bbdcb9151116ff7bad7f83f8 /app | |
parent | 1e81c4be5352c30e810ad5baf832666c61dc4f0f (diff) | |
download | gitlab-ce-b7860b30aa4cf9d6b40ef2766912b366d916a9c7.tar.gz |
fix milestones finder failing specissue_34852
Diffstat (limited to 'app')
-rw-r--r-- | app/finders/milestones_finder.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/finders/milestones_finder.rb b/app/finders/milestones_finder.rb index 23c42a5f662..0a5a0ea2f35 100644 --- a/app/finders/milestones_finder.rb +++ b/app/finders/milestones_finder.rb @@ -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 |