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

[#64347] error messages

Tobias Dillmann5519b9e4efae
diff --git a/app/models/custom_field/calculated_value.rb b/app/models/custom_field/calculated_value.rb
index 58b088ae4bb..2174ab82543 100644
--- a/app/models/custom_field/calculated_value.rb
+++ b/app/models/custom_field/calculated_value.rb
@@ -44,6 +44,9 @@ module CustomField::CalculatedValue
# TODO WP-64348: add support for referenced custom fields by injecting them as variables,
# e.g. Dentaku(formula_string, cf_123: CustomField.find(123).value)
errors.add(:formula, :invalid) unless Dentaku(formula_string)
+
+ # TODO: consider differentiating between a formula that contains invalid characters, missing variables, invalid
+ # syntax, or mathematical errors.
end
def formula=(value)