Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Show percentage done value directly without any additional calculation as the passed value is already the correct one

Henriette Darge2829331e6893
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 1902b27c67d..5492dab1271 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -387,7 +387,7 @@ module ApplicationHelper
def progress_bar(pcts, options = {})
pcts = Array(pcts).map(&:round)
closed = pcts[0]
- done = (pcts[1] || closed) - closed
+ done = pcts[1] || 0
width = options[:width] || '100px;'
legend = options[:legend] || ''
total_progress = options[:hide_total_progress] ? '' : t(:total_progress)