git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11861
e93f8b46-1217-0410-a6f0-
8f06a7374b81
<h3>
<%= link_to l(:label_assigned_to_me_issues),
issues_path(:set_filter => 1, :assigned_to_id => 'me', :sort => 'priority:desc,updated_on:desc') %>
- (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => ([User.current.id] + User.current.group_ids)})%>)
+ (<%= Issue.visible.open.where(:assigned_to_id => ([User.current.id] + User.current.group_ids)).count %>)
</h3>
<% assigned_issues = issuesassignedtome_items %>
<h3>
<%= link_to l(:label_reported_issues),
issues_path(:set_filter => 1, :status_id => '*', :author_id => 'me', :sort => 'updated_on:desc') %>
- (<%= Issue.visible.count(:conditions => { :author_id => User.current.id }) %>)
+ (<%= Issue.visible.where(:author_id => User.current.id).count %>)
</h3>
<% reported_issues = issuesreportedbyme_items %>