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
Undo name change
Dombi Attila2a21cb00f4b0
diff --git a/app/models/work_package.rb b/app/models/work_package.rbindex 000adb5b6fc..a1dd265d12a 100644--- a/app/models/work_package.rb+++ b/app/models/work_package.rb@@ -523,7 +523,7 @@ class WorkPackage < ApplicationRecordprivate_class_method :available_custom_field_key- def custom_values_cache_key+ def custom_field_cache_key[project_id, type_id]enddiff --git a/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rbindex 97c5ae4553f..197fd31b8ad 100644--- a/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rb+++ b/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rb@@ -112,7 +112,7 @@ module Redmineenddef custom_field_values- custom_field_values_cache[custom_values_cache_key] ||=+ custom_field_values_cache[custom_field_cache_key] ||=available_custom_fields.flat_map do |custom_field|existing_cvs = custom_values.select { |v| v.custom_field_id == custom_field.id }@@ -132,7 +132,7 @@ module Redmine## i.e.: The work package custom field values are changing based on the project_id and type_id.# The only way to keep the cache updated is to include those ids in the cache key.- def custom_values_cache_key+ def custom_field_cache_key1end