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

increase feature flag robustness

ulferts410522947ecd
diff --git a/lib_static/open_project/feature_decisions.rb b/lib_static/open_project/feature_decisions.rb
index 2198e28ab9e..73b4f2b461b 100644
--- a/lib_static/open_project/feature_decisions.rb
+++ b/lib_static/open_project/feature_decisions.rb
@@ -74,7 +74,7 @@ module OpenProject
def define_flag_methods(flag_name)
define_singleton_method "#{flag_name}_active?" do
- Setting.send("feature_#{flag_name}_active?")
+ Setting.exists?("feature_#{flag_name}_active") && Setting.send("feature_#{flag_name}_active?")
end
end