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

fixed project index specs

Jonas Jabarida8be0688283
diff --git a/app/components/projects/row_component.rb b/app/components/projects/row_component.rb
index 487c1a8c9ac..7dc738e16ee 100644
--- a/app/components/projects/row_component.rb
+++ b/app/components/projects/row_component.rb
@@ -58,7 +58,7 @@ module Projects
custom_value = project.formatted_custom_value_for(cf)
if cf.field_format == 'text'
- custom_value.html_safe # rubocop:disable Rails/OutputSafety
+ custom_value&.html_safe # rubocop:disable Rails/OutputSafety
elsif custom_value.is_a?(Array)
safe_join(Array(custom_value).compact_blank, ', ')
else
diff --git a/spec/features/projects/projects_index_spec.rb b/spec/features/projects/projects_index_spec.rb
index 0009b06932d..b2f27c2cccb 100644
--- a/spec/features/projects/projects_index_spec.rb
+++ b/spec/features/projects/projects_index_spec.rb
@@ -316,7 +316,7 @@ RSpec.describe 'Projects index page',
# The same filters should still be intact but the order should be DESC on name
projects_page.expect_projects_listed(public_project)
- projects_page.expect_projects_not_listed(project, # Filtered out
+ projects_page.expect_projects_not_listed(project, # Filtered out
development_project) # Present on page 2
projects_page.expect_total_pages(2) # Filters kept active, so there is no third page.