Commit ae006dd9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #3645 from lucasuyezu/alphabetically_sorted

Assignees are now sorted alphabetically.
parents fe838588 34d4a3c8
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
= f.label :assignee_id do = f.label :assignee_id do
%i.icon-user %i.icon-user
Assign to Assign to
.input= f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { include_blank: "Select a user" }, {class: 'chosen'}) .input= f.select(:assignee_id, @project.users.alphabetically.collect {|p| [ p.name, p.id ] }, { include_blank: "Select a user" }, {class: 'chosen'})
.issue_milestone.pull-left .issue_milestone.pull-left
= f.label :milestone_id do = f.label :milestone_id do
%i.icon-time %i.icon-time
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
= f.label :assignee_id do = f.label :assignee_id do
%i.icon-user %i.icon-user
Assign to Assign to
.input= f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { include_blank: "Select user" }, {class: 'chosen span3'}) .input= f.select(:assignee_id, @project.users.alphabetically.collect {|p| [ p.name, p.id ] }, { include_blank: "Select user" }, {class: 'chosen span3'})
.left .left
= f.label :milestone_id do = f.label :milestone_id do
%i.icon-time %i.icon-time
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment