Commit ae006dd90ba635c1c7ee7c5c56b5570bb50a3f83
Exists in
master
and in
4 other branches
Merge pull request #3645 from lucasuyezu/alphabetically_sorted
Assignees are now sorted alphabetically.
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/views/issues/_form.html.haml
... | ... | @@ -19,7 +19,7 @@ |
19 | 19 | = f.label :assignee_id do |
20 | 20 | %i.icon-user |
21 | 21 | Assign to |
22 | - .input= f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { include_blank: "Select a user" }, {class: 'chosen'}) | |
22 | + .input= f.select(:assignee_id, @project.users.alphabetically.collect {|p| [ p.name, p.id ] }, { include_blank: "Select a user" }, {class: 'chosen'}) | |
23 | 23 | .issue_milestone.pull-left |
24 | 24 | = f.label :milestone_id do |
25 | 25 | %i.icon-time | ... | ... |
app/views/merge_requests/_form.html.haml
... | ... | @@ -40,7 +40,7 @@ |
40 | 40 | = f.label :assignee_id do |
41 | 41 | %i.icon-user |
42 | 42 | Assign to |
43 | - .input= f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { include_blank: "Select user" }, {class: 'chosen span3'}) | |
43 | + .input= f.select(:assignee_id, @project.users.alphabetically.collect {|p| [ p.name, p.id ] }, { include_blank: "Select user" }, {class: 'chosen span3'}) | |
44 | 44 | .left |
45 | 45 | = f.label :milestone_id do |
46 | 46 | %i.icon-time | ... | ... |