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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#64348] Modulo operator for Calculated Values
Tobias Dillmann6f32b605bfbb
diff --git a/app/models/custom_field/calculated_value.rb b/app/models/custom_field/calculated_value.rbindex 25e7b4d707f..16c8b5fbb52 100644--- a/app/models/custom_field/calculated_value.rb+++ b/app/models/custom_field/calculated_value.rb@@ -34,7 +34,7 @@ module CustomField::CalculatedValueextend ActiveSupport::Concern# Mathematical operators that are allowed in the formula.- OPERATORS = %w[+ - * / ( )].freeze+ OPERATORS = %w[+ - * / % ( )].freeze# Field formats that can be used within a formula.FIELD_FORMATS_FOR_FORMULA = %w[int float calculated_value].freeze