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
replace deprected call to `parent`
ulferts517a01ee1622
diff --git a/modules/reporting/app/models/cost_query/custom_field_mixin.rb b/modules/reporting/app/models/cost_query/custom_field_mixin.rbindex 32103b8de1f..53c0ffb4743 100644--- a/modules/reporting/app/models/cost_query/custom_field_mixin.rb+++ b/modules/reporting/app/models/cost_query/custom_field_mixin.rb@@ -50,16 +50,16 @@ module CostQuery::CustomFieldMixindef generate_subclassesWorkPackageCustomField.where(field_format: SQL_TYPES.keys).map do |field|class_name = "CustomField#{field.id}"- parent.send(:remove_const, class_name) if parent.const_defined? class_name- parent.const_set class_name, Class.new(self)- parent.const_get(class_name).prepare(field, class_name)+ module_parent.send(:remove_const, class_name) if module_parent.const_defined? class_name+ module_parent.const_set class_name, Class.new(self)+ module_parent.const_get(class_name).prepare(field, class_name)endenddef remove_subclasses- parent.constants.each do |constant|+ module_parent.constants.each do |constant|if constant.to_s.match /^CustomField\d+/- parent.send(:remove_const, constant)+ module_parent.send(:remove_const, constant)endendend