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

include the acts_as_customizable patch only if project attributes feature is enabled

Jonas Jabari8e37370bfd36
diff --git a/app/models/project.rb b/app/models/project.rb
index 0691b796701..7e70bb9ecc8 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -33,9 +33,13 @@ class Project < ApplicationRecord
include Projects::Activity
include Projects::Hierarchy
include Projects::AncestorsFromRoot
- include Projects::ActsAsCustomizablePatches
+
include ::Scopes::Scoped
+ if OpenProject::FeatureDecisions.project_attributes_active?
+ include Projects::ActsAsCustomizablePatches
+ end
+
# Maximum length for project identifiers
IDENTIFIER_MAX_LENGTH = 100