Defect #40100 » user_sorting_20240123193437.patch
app/helpers/application_helper.rb | ||
---|---|---|
647 | 647 |
s << content_tag('option', "<< #{l(:label_me)} >>", :value => User.current.id) |
648 | 648 |
end |
649 | 649 |
groups = +'' |
650 |
collection.sort.each do |element|
|
|
650 |
collection.each do |element| |
|
651 | 651 |
if option_value_selected?(element, selected) || element.id.to_s == selected |
652 | 652 |
selected_attribute = ' selected="selected"' |
653 | 653 |
end |
app/helpers/issues_helper.rb | ||
---|---|---|
467 | 467 |
users = issue.watcher_users.select{|u| u.status == User::STATUS_ACTIVE} |
468 | 468 |
assignable_watchers = issue.project.principals.assignable_watchers.limit(21) |
469 | 469 |
if assignable_watchers.size <= 20 |
470 |
users += assignable_watchers.sort |
|
470 |
users += assignable_watchers.sorted
|
|
471 | 471 |
end |
472 | 472 |
users.uniq |
473 | 473 |
end |
app/models/issue.rb | ||
---|---|---|
993 | 993 |
if assigned_to_id_was.present? && assignee = Principal.find_by_id(assigned_to_id_was) |
994 | 994 |
users << assignee |
995 | 995 |
end |
996 |
users.uniq.sort
|
|
996 |
users.uniq |
|
997 | 997 |
end |
998 | 998 | |
999 | 999 |
# Versions that the issue can be assigned to |
- « Previous
- 1
- 2
- 3
- 4
- Next »