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

fix bug and comment in attribute formatter project.public

as-op0f1e67be14fa
diff --git a/app/models/projects/exports/formatters/public.rb b/app/models/projects/exports/formatters/public.rb
index 40a6e85d1f0..deb4deb0301 100644
--- a/app/models/projects/exports/formatters/public.rb
+++ b/app/models/projects/exports/formatters/public.rb
@@ -33,9 +33,9 @@ module Projects::Exports
end
##
- # Takes a project and returns the localized status code
+ # Takes a project and returns yes/no depending on the public attribute
def format(project, **)
- project.active ? I18n.t(:general_text_Yes) : I18n.t(:general_text_No)
+ project.public? ? I18n.t(:general_text_Yes) : I18n.t(:general_text_No)
end
end
end