Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sortowanie użytkowników po pozycji

  • Loading branch information...
commit 225e627b19cb86479ce9bdd7edb642994e06d491 1 parent 4cba6a3
@swistak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/my/blocks/_user_queries.html.erb
View
4 app/views/my/blocks/_user_queries.html.erb
@@ -9,7 +9,7 @@
</tr>
</thead>
<tbody>
- <% User.find(:all, :conditions => {:status => 1}, :order => "firstname ASC").each do |user|
+ <% User.find(:all, :conditions => {:status => 1}, :order => "firstname ASC").sort_by{|u| v = u.custom_value_for(2); v ? v.value.to_i : 2 }.each do |user|
issue_count = Issue.count(:conditions => {:assigned_to_id => user.id}, :include => [:status], :group => "#{IssueStatus.table_name}.is_closed").to_hash
%>
<tr class="<%= cycle('odd', 'even') %> <%= 'empty' if issue_count == 0 %>">
@@ -23,4 +23,4 @@
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'my_widgets', :plugin => 'redmine_my_widgets' %>
-<% end %>
+<% end %>
Please sign in to comment.
Something went wrong with that request. Please try again.