From 62c7d1142721da79fe3c604e5fdaaa83031a6fa2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 16 Jan 2017 18:11:23 +0000 Subject: [PATCH] Use exists? instead of count (#24839). git-svn-id: http://svn.redmine.org/redmine/trunk@16210 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/versions/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/versions/show.html.erb b/app/views/versions/show.html.erb index 82bd572d2..fc22a9ffb 100644 --- a/app/views/versions/show.html.erb +++ b/app/views/versions/show.html.erb @@ -32,7 +32,7 @@ <% end %>
-<%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.count > 0 %> +<%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.exists? %>
-- 2.39.5