Skip to content
Snippets Groups Projects
Commit 301264be authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Fix sorting merge requests by priority

parent 928acba4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -145,10 +145,16 @@ module Issuable
end
 
def order_labels_priority(excluded_labels: [])
project_column =
case table_name
when Issue.table_name then "#{table_name}.project_id"
when MergeRequest.table_name then "#{table_name}.target_project_id"
end
params = {
target_type: name,
target_column: "#{table_name}.id",
project_column: "#{table_name}.project_id",
project_column: project_column,
excluded_labels: excluded_labels
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment