summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLucas Uyezu <lucas.uyezu@gmail.com>2013-04-20 02:06:51 -0300
committerLucas Uyezu <lucas.uyezu@gmail.com>2013-04-20 02:06:51 -0300
commit34d4a3c8dfdf52ec70b8fe62fe4a3f65245bbe77 (patch)
treee9b352bc96880ed94ba1768f10f54c8d158ad007 /app
parentb20bd1b6055b1dd9825ca86e78d056c7a32d7f69 (diff)
downloadgitlab-ce-34d4a3c8dfdf52ec70b8fe62fe4a3f65245bbe77.tar.gz
Assignees are now sorted alphabetically.
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/_form.html.haml2
-rw-r--r--app/views/merge_requests/_form.html.haml2
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