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

[#64348] Do not cache calculator instance

Tobias Dillmann3237e2042be6
diff --git a/app/models/custom_field/calculated_value.rb b/app/models/custom_field/calculated_value.rb
index 4c15ea77c3a..790da496ffe 100644
--- a/app/models/custom_field/calculated_value.rb
+++ b/app/models/custom_field/calculated_value.rb
@@ -98,7 +98,7 @@ module CustomField::CalculatedValue
private
def calculator
- @calculator ||= Dentaku::Calculator.new(case_sensitive: true)
+ Dentaku::Calculator.new(case_sensitive: true)
end
def valid_formula_syntax?