summaryrefslogtreecommitdiffstats
path: root/app/views/my
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/my')
-rw-r--r--app/views/my/blocks/_issuesassignedtome.html.erb2
-rw-r--r--app/views/my/blocks/_issuesreportedbyme.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/my/blocks/_issuesassignedtome.html.erb b/app/views/my/blocks/_issuesassignedtome.html.erb
index 41f87ec43..f408111a3 100644
--- a/app/views/my/blocks/_issuesassignedtome.html.erb
+++ b/app/views/my/blocks/_issuesassignedtome.html.erb
@@ -1,7 +1,7 @@
<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 %>
diff --git a/app/views/my/blocks/_issuesreportedbyme.html.erb b/app/views/my/blocks/_issuesreportedbyme.html.erb
index 2253af9af..3064675f2 100644
--- a/app/views/my/blocks/_issuesreportedbyme.html.erb
+++ b/app/views/my/blocks/_issuesreportedbyme.html.erb
@@ -1,7 +1,7 @@
<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 %>