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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix empty project attributes issue seen in specs
Jonas Jabari5753baf90c90
diff --git a/app/components/settings/project_custom_field_sections/index_component.html.erb b/app/components/settings/project_custom_field_sections/index_component.html.erbindex 22c1f3bad99..68f40c5ed86 100644--- a/app/components/settings/project_custom_field_sections/index_component.html.erb+++ b/app/components/settings/project_custom_field_sections/index_component.html.erb@@ -1,11 +1,13 @@<%=component_wrapper(data: wrapper_data_attributes) do- flex_layout(classes: 'dragula-container', data: { 'allowed-drop-type': 'section' }.merge(drop_target_config) ) do |flex|- @project_custom_field_sections.each do |section|- flex.with_row(- data: draggable_item_config(section)- ) do- render(Settings::ProjectCustomFieldSections::ShowComponent.new(project_custom_field_section: section))+ if @project_custom_field_sections.any?+ flex_layout(classes: 'dragula-container', data: { 'allowed-drop-type': 'section' }.merge(drop_target_config) ) do |flex|+ @project_custom_field_sections.each do |section|+ flex.with_row(+ data: draggable_item_config(section)+ ) do+ render(Settings::ProjectCustomFieldSections::ShowComponent.new(project_custom_field_section: section))+ endendendend