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
Add new project CF to enabled columns by default
Oliver Günther89e0c8c899da
diff --git a/app/services/custom_fields/create_service.rb b/app/services/custom_fields/create_service.rbindex 2c30093331a..9ddf1a4ad9e 100644--- a/app/services/custom_fields/create_service.rb+++ b/app/services/custom_fields/create_service.rb@@ -53,6 +53,16 @@ module CustomFieldscfend+ def after_perform(call)+ cf = call.result++ if cf.is_a?(ProjectCustomField)+ add_cf_to_visible_columns(cf.id)+ end++ call+ end+privatedef add_cf_to_visible_columns(id)