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

[#66093] Remove superfluous check

Tobias Dillmann986fcd12f194
diff --git a/app/models/calculated_values/error_handler.rb b/app/models/calculated_values/error_handler.rb
index 12e1366bf96..f22fa74d580 100644
--- a/app/models/calculated_values/error_handler.rb
+++ b/app/models/calculated_values/error_handler.rb
@@ -62,8 +62,6 @@ module CalculatedValues
end
def handle_errors
- return unless should_create_errors?
-
error_contexts = build_error_contexts
create_error_records!(error_contexts)
end
@@ -72,10 +70,6 @@ module CalculatedValues
attr_reader :customized, :calculation_errors, :calculation_values, :given_values, :calculated_fields
- def should_create_errors?
- customized.is_a?(Project)
- end
-
def build_error_contexts
calculation_errors.filter_map do |cf_id, error|
build_error_context(cf_id, error)