GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

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: 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.done_ratio}%"
label =
unless issue.disabled_core_fields.include?('done_ratio')
label << " #{issue.done_ratio}%"
markers = !issue.leaf?
line(issue.start_date, issue.due_before, issue.done_ratio, markers, label, options, issue)
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