From: Jean-Philippe Lang Date: Sun, 20 Feb 2011 13:13:10 +0000 (+0000) Subject: Fixed: Workflow summary shows X icon for workflow with exactly 1 status transition... X-Git-Tag: 1.2.0~932 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=490ad9eeb80057e97da74b1a1031c42d2af0413c;p=redmine.git Fixed: Workflow summary shows X icon for workflow with exactly 1 status transition (#7611). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4890 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/workflows/index.rhtml b/app/views/workflows/index.rhtml index bed6a34dc..21287a224 100644 --- a/app/views/workflows/index.rhtml +++ b/app/views/workflows/index.rhtml @@ -24,7 +24,7 @@ <%= h tracker %> <% roles.each do |role, count| -%> - <%= link_to((count > 1 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> + <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> <% end -%>