Commit 753dbf43 authored by marutosijp's avatar marutosijp

gannt: not show %done if the field is disabled for the tracker (#25876)

Contributed by Jens Krämer.

git-svn-id: https://svn.redmine.org/redmine/trunk@16663 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 10f0294e
......@@ -314,7 +314,10 @@ module Redmine
def line_for_issue(issue, options)
# Skip issues that don't have a due_before (due_date or version's due_date)
if issue.is_a?(Issue) && issue.due_before
label = "#{issue.status.name} #{issue.done_ratio}%"
label = issue.status.name.dup
unless issue.disabled_core_fields.include?('done_ratio')
label << " #{issue.done_ratio}%"
end
markers = !issue.leaf?
line(issue.start_date, issue.due_before, issue.done_ratio, markers, label, options, issue)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment