Issues sorted by priority position.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@801 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c216ab325b
commit
185547af69
|
@ -74,7 +74,7 @@ class Query < ActiveRecord::Base
|
||||||
@@available_columns = [
|
@@available_columns = [
|
||||||
QueryColumn.new(:tracker, :sortable => "#{Tracker.table_name}.position"),
|
QueryColumn.new(:tracker, :sortable => "#{Tracker.table_name}.position"),
|
||||||
QueryColumn.new(:status, :sortable => "#{IssueStatus.table_name}.position"),
|
QueryColumn.new(:status, :sortable => "#{IssueStatus.table_name}.position"),
|
||||||
QueryColumn.new(:priority, :sortable => "#{Issue.table_name}.priority_id"),
|
QueryColumn.new(:priority, :sortable => "#{Enumeration.table_name}.position"),
|
||||||
QueryColumn.new(:subject),
|
QueryColumn.new(:subject),
|
||||||
QueryColumn.new(:assigned_to, :sortable => "#{User.table_name}.lastname"),
|
QueryColumn.new(:assigned_to, :sortable => "#{User.table_name}.lastname"),
|
||||||
QueryColumn.new(:updated_on, :sortable => "#{Issue.table_name}.updated_on"),
|
QueryColumn.new(:updated_on, :sortable => "#{Issue.table_name}.updated_on"),
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<% assigned_issues = Issue.find(:all,
|
<% assigned_issues = Issue.find(:all,
|
||||||
:conditions => ["assigned_to_id=? AND #{IssueStatus.table_name}.is_closed=? AND #{Project.table_name}.status=#{Project::STATUS_ACTIVE}", user.id, false],
|
:conditions => ["assigned_to_id=? AND #{IssueStatus.table_name}.is_closed=? AND #{Project.table_name}.status=#{Project::STATUS_ACTIVE}", user.id, false],
|
||||||
:limit => 10,
|
:limit => 10,
|
||||||
:include => [ :status, :project, :tracker ],
|
:include => [ :status, :project, :tracker, :priority ],
|
||||||
:order => "#{Issue.table_name}.priority_id DESC, #{Issue.table_name}.updated_on DESC") %>
|
:order => "#{Enumeration.table_name}.position DESC, #{Issue.table_name}.updated_on DESC") %>
|
||||||
<%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %>
|
<%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %>
|
||||||
<% if assigned_issues.length > 0 %>
|
<% if assigned_issues.length > 0 %>
|
||||||
<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :set_filter => 1, :assigned_to_id => 'me' %></p>
|
<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :set_filter => 1, :assigned_to_id => 'me' %></p>
|
||||||
|
|
Loading…
Reference in New Issue