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
disable auto enabling of new project custom fields
Jonas Jabari703c446be277
diff --git a/app/models/project_custom_field.rb b/app/models/project_custom_field.rbindex c11c4e00cf0..3df3dd8ae1c 100644--- a/app/models/project_custom_field.rb+++ b/app/models/project_custom_field.rb@@ -33,7 +33,7 @@ class ProjectCustomField < CustomFieldacts_as_list column: :position_in_custom_field_section, scope: [:custom_field_section_id]- after_create :activate_in_all_projects+ # after_create :activate_in_all_projectsdef type_name:label_project_plural@@ -47,9 +47,9 @@ class ProjectCustomField < CustomFieldendend- def activate_in_all_projects- # until we have the project mapping UI, activate the custom field in all projects- mappings = Project.active.map { |project| { project_id: project.id, custom_field_id: id } }- ProjectCustomFieldProjectMapping.create!(mappings)- end+ # TODO: check if custom field is set to be activated in all projects in creation form+ # def activate_in_all_projects+ # mappings = Project.active.map { |project| { project_id: project.id, custom_field_id: id } }+ # ProjectCustomFieldProjectMapping.create!(mappings)+ # endend