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

Do not show the project status in the project list when status not set

Wieland Lindenthale0aa0c14f9db
diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb
index 2bf248748e8..2aefce61be2 100644
--- a/app/views/projects/index.html.erb
+++ b/app/views/projects/index.html.erb
@@ -102,8 +102,10 @@ See docs/COPYRIGHT.rdoc for more details.
<%= link_to_project(project, {}, {}, false) %>
</td>
<td>
- <span class="project-status--bulb -inline <%= project_status_css_class(project.status) %>"></span>
- <span class="project-status--name <%= project_status_css_class(project.status) %>"><%= project_status_name(project.status) %></span>
+ <% if project.status.try(:code) %>
+ <span class="project-status--bulb -inline <%= project_status_css_class(project.status) %>"></span>
+ <span class="project-status--name <%= project_status_css_class(project.status) %>"><%= project_status_name(project.status) %></span>
+ <% end %>
</td>
<td><%= checked_image project.public? %></td>
<% if EnterpriseToken.allows_to?(:custom_fields_in_projects_list) %>