summaryrefslogtreecommitdiff
path: root/lib/api/merge_requests.rb
diff options
context:
space:
mode:
authorNermin Vehabovic <nermin.vehabovic90@gmail.com>2019-02-16 11:03:42 +0100
committerNermin Vehabovic <nermin.vehabovic90@gmail.com>2019-02-16 11:03:42 +0100
commitff671366cb80a78c2846d5407d2380680a47a90d (patch)
tree8b13498b784daa5643520867e2333ba1954ec7ff /lib/api/merge_requests.rb
parent3967412f7e430d5a70560da8c7d6990a0aeec029 (diff)
downloadgitlab-ce-ff671366cb80a78c2846d5407d2380680a47a90d.tar.gz
Added: Include order by ID desc for tie breakers in pagination
Diffstat (limited to 'lib/api/merge_requests.rb')
-rw-r--r--lib/api/merge_requests.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/merge_requests.rb b/lib/api/merge_requests.rb
index df46b4446ff..f8d2ba49d2f 100644
--- a/lib/api/merge_requests.rb
+++ b/lib/api/merge_requests.rb
@@ -38,7 +38,7 @@ module API
args[:scope] = args[:scope].underscore if args[:scope]
merge_requests = MergeRequestsFinder.new(current_user, args).execute
- .reorder(args[:order_by] => args[:sort])
+ .reorder(order_options_with_tie_breaker)
merge_requests = paginate(merge_requests)
.preload(:source_project, :target_project)