summaryrefslogtreecommitdiffstats
path: root/app/views/trackers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-16 18:12:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-16 18:12:49 +0000
commitc7f03c00a92289f743298cf9bd0b4a13b0ac3fae (patch)
tree11074e95ce66da5116347795902892bd6c8fba0b /app/views/trackers
parent62c7d1142721da79fe3c604e5fdaaa83031a6fa2 (diff)
downloadredmine-c7f03c00a92289f743298cf9bd0b4a13b0ac3fae.tar.gz
redmine-c7f03c00a92289f743298cf9bd0b4a13b0ac3fae.zip
Use exists? instead of count (#24839).
Patch by Vincent Robert and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16211 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/trackers')
-rw-r--r--app/views/trackers/index.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/trackers/index.html.erb b/app/views/trackers/index.html.erb
index 5f40cf0ee..7ee6387fd 100644
--- a/app/views/trackers/index.html.erb
+++ b/app/views/trackers/index.html.erb
@@ -16,7 +16,7 @@
<tr class="<%= cycle("odd", "even") %>">
<td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td>
<td>
- <% unless tracker.workflow_rules.count > 0 %>
+ <% unless tracker.workflow_rules.exists? %>
<span class="icon icon-warning">
<%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:tracker_id => tracker) %>)
</span>