diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-18 07:49:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-18 07:49:13 +0000 |
commit | 5b29964512f7c8ab7698b059392eb9e6d6fd9e31 (patch) | |
tree | cc0ef99bddd7a3f0cef3069ecc95f078ae987285 /app/views/my | |
parent | 2c67e9e0d7ca021816c5926f2d77b0847a77e323 (diff) | |
download | redmine-5b29964512f7c8ab7698b059392eb9e6d6fd9e31.tar.gz redmine-5b29964512f7c8ab7698b059392eb9e6d6fd9e31.zip |
User #where instead of :conditions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11861 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/my')
-rw-r--r-- | app/views/my/blocks/_issuesassignedtome.html.erb | 2 | ||||
-rw-r--r-- | app/views/my/blocks/_issuesreportedbyme.html.erb | 2 |
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 %> |