diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-10-28 03:26:56 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-10-28 03:26:56 +0300 |
commit | 7bd6ff03d8cc08673497e3b574efce1648f27da0 (patch) | |
tree | bb7022f70629314644270849c5c40da01ecf3f8e /app/models/todo.rb | |
parent | 20a7db4483904c7280093a0309a63dfd1b7ef72e (diff) |
Fix and improve `Sortable.highest_label_priority`
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r-- | app/models/todo.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb index 11c072dd000..f5ade1cc293 100644 --- a/app/models/todo.rb +++ b/app/models/todo.rb @@ -53,7 +53,7 @@ class Todo < ActiveRecord::Base # Need to order by created_at last because of differences on Mysql and Postgres when joining by type "Merge_request/Issue" def order_by_labels_priority params = { - target_type: ['Issue', 'MergeRequest'], + target_type_column: "todos.target_type", target_column: "todos.target_id", project_column: "todos.project_id" } |