diff options
author | Rémy Coutable <remy@rymai.me> | 2016-05-13 17:26:18 +0200 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-06 11:59:49 -0500 |
commit | 499bb9f305e78d0e3488c2eee6328ce76af39920 (patch) | |
tree | ffc4aa229ae08c995afabf893ed36167c950302e /app/finders/issuable_finder.rb | |
parent | d8263b285193d9163089683eb77825f1cd673b14 (diff) | |
download | gitlab-ce-499bb9f305e78d0e3488c2eee6328ce76af39920.tar.gz |
Improve Issuable.order_labels_priority
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/finders/issuable_finder.rb')
-rw-r--r-- | app/finders/issuable_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb index 68ab6e87684..a0932712bd0 100644 --- a/app/finders/issuable_finder.rb +++ b/app/finders/issuable_finder.rb @@ -224,7 +224,7 @@ class IssuableFinder def sort(items) # Ensure we always have an explicit sort order (instead of inheriting # multiple orders when combining ActiveRecord::Relation objects). - params[:sort] ? items.sort(params[:sort], label_names) : items.reorder(id: :desc) + params[:sort] ? items.sort(params[:sort], excluded_labels: label_names) : items.reorder(id: :desc) end def by_assignee(items) |