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

Merge branch 'dev' into feature/45896-generate-pdf-document-from-a-work-package-description

Andrej Sandorfcb6514d6d8a3
diff --cc config/initializers/feature_decisions.rb
index 6c0a87bd242,371c20ae6d5..838b3617f56
--- a/config/initializers/feature_decisions.rb
+++ b/config/initializers/feature_decisions.rb
@@@ -43,9 -43,12 +43,16 @@@ OpenProject::FeatureDecisions.add :prim
OpenProject::FeatureDecisions.add :built_in_oauth_applications,
description: "Allows the display and use of built-in OAuth applications."
+OpenProject::FeatureDecisions.add :generate_pdf_from_work_package,
+ description: "Allows to generate a PDF document from a work package description. " \
+ "See #45896 for details."
+
OpenProject::FeatureDecisions.add :custom_field_of_type_hierarchy,
description: "Allows the use of the custom field type 'Hierarchy'."
+
+ # TODO: Remove once the feature flag primerized_work_package_activities is removed altogether
+ OpenProject::FeatureDecisions.define_singleton_method(:primerized_work_package_activities_active?) do
+ Rails.env.production? ||
+ (Setting.exists?("feature_primerized_work_package_activities_active") &&
+ Setting.send(:feature_primerized_work_package_activities_active?))
+ end