]> source.dussan.org Git - redmine.git/commitdiff
Fixed that % done field is shown on issue show subtree even if deactivated for that...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 21 Jan 2016 04:56:09 +0000 (04:56 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 21 Jan 2016 04:56:09 +0000 (04:56 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@15082 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index 5fdc6bf8c8f5d1d16c54eb36cffa5ced529114de..3adc4545493803f8cf36d8a3561ebd970a1b784e 100644 (file)
@@ -114,7 +114,7 @@ module IssuesHelper
              content_tag('td', link_to_issue(child, :project => (issue.project_id != child.project_id)), :class => 'subject', :style => 'width: 50%') +
              content_tag('td', h(child.status)) +
              content_tag('td', link_to_user(child.assigned_to)) +
-             content_tag('td', progress_bar(child.done_ratio)),
+             content_tag('td', child.disabled_core_fields.include?('done_ratio') ? '' : progress_bar(child.done_ratio)),
              :class => css)
     end
     s << '</table></form>'