diff options
author | Lucas Uyezu <lucas.uyezu@gmail.com> | 2013-04-20 02:06:51 -0300 |
---|---|---|
committer | Lucas Uyezu <lucas.uyezu@gmail.com> | 2013-04-20 02:06:51 -0300 |
commit | 34d4a3c8dfdf52ec70b8fe62fe4a3f65245bbe77 (patch) | |
tree | e9b352bc96880ed94ba1768f10f54c8d158ad007 /app | |
parent | b20bd1b6055b1dd9825ca86e78d056c7a32d7f69 (diff) | |
download | gitlab-ce-34d4a3c8dfdf52ec70b8fe62fe4a3f65245bbe77.tar.gz |
Assignees are now sorted alphabetically.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/issues/_form.html.haml | 2 | ||||
-rw-r--r-- | app/views/merge_requests/_form.html.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/issues/_form.html.haml b/app/views/issues/_form.html.haml index 6d7613a700d..ae386961948 100644 --- a/app/views/issues/_form.html.haml +++ b/app/views/issues/_form.html.haml @@ -19,7 +19,7 @@ = f.label :assignee_id do %i.icon-user 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 = f.label :milestone_id do %i.icon-time diff --git a/app/views/merge_requests/_form.html.haml b/app/views/merge_requests/_form.html.haml index 6d64988c15a..1c3aca176ab 100644 --- a/app/views/merge_requests/_form.html.haml +++ b/app/views/merge_requests/_form.html.haml @@ -40,7 +40,7 @@ = f.label :assignee_id do %i.icon-user 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 = f.label :milestone_id do %i.icon-time |