summaryrefslogtreecommitdiffstats
path: root/app/views/projects/settings.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-31 20:57:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-31 20:57:01 +0000
commit671a0fa10161ead2ec0fef888710cf7d872b2f61 (patch)
treef7b9068afbc1d1e360106b9584cd88aa89f10ab1 /app/views/projects/settings.rhtml
parent99f006f2c959ce9d1e5136e950ca448cc92ec7c9 (diff)
downloadredmine-671a0fa10161ead2ec0fef888710cf7d872b2f61.tar.gz
redmine-671a0fa10161ead2ec0fef888710cf7d872b2f61.zip
added the ability to set the sort order for roles
git-svn-id: http://redmine.rubyforge.org/svn/trunk@208 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/settings.rhtml')
-rw-r--r--app/views/projects/settings.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/settings.rhtml b/app/views/projects/settings.rhtml
index 9299ce49c..8a891c010 100644
--- a/app/views/projects/settings.rhtml
+++ b/app/views/projects/settings.rhtml
@@ -23,7 +23,7 @@
<table class="list">
<thead><th><%= l(:label_user) %></th><th><%= l(:label_role) %></th><th></th></thead>
<tbody>
- <% for member in @project.members.find(:all, :include => :user) %>
+ <% @project.members.find(:all, :include => [:role, :user]).sort{|x,y| x.role.position <=> y.role.position}.each do |member| %>
<% unless member.new_record? %>
<tr class="<%= cycle 'odd', 'even' %>">
<td><%= member.user.display_name %></td>