redmine中修改我的工作台中“指派给我的问题”的排序方法
?
最近公司推广使用redmine时候,大家反馈一个问题,当派送给我的任务比较多的时候,我修改了问题的状态之后,因为目前还没有使用到已关闭状态(流程未走通),导致已解决的问题吧进行中的问题给寄出去,所以想办法修改一下代码:
修改redmine安装目录 app\views\my\blocks\_issuesreportedbyme.rhtml修改如下代码:
?
<h3><%=l(:label_assigned_to_me_issues)%> (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => User.current.id})%>)</h3><% assigned_issues = Issue.visible.open.find(:all, :conditions => {:assigned_to_id => User.current.id}, :limit => 10, :include => [ :status, :project, :tracker, :priority ], :order => "#{IssuePriority.table_name}.position DESC, #{Issue.table_name}.status_id DESC") %><%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %><% 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', :sort => 'priority:desc,status_id:desc' %></p><% end %><% content_for :header_tags do %><%= auto_discovery_link_tag(:atom, {:controller => 'issues', :action => 'index', :set_filter => 1, :assigned_to_id => 'me', :format => 'atom', :key => User.current.rss_key}, {:title => l(:label_assigned_to_me_issues)}) %><% end %>?
?