From c8bd3dffed87ae6cbe4903429ee80be3dcb9694f Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Wed, 11 Feb 2026 15:17:26 +0100 Subject: [PATCH] don't cache the scope in Project#all_available_custom_fields --- app/models/projects/custom_fields.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/projects/custom_fields.rb b/app/models/projects/custom_fields.rb index feb76cd612c..6716e5651b6 100644 --- a/app/models/projects/custom_fields.rb +++ b/app/models/projects/custom_fields.rb @@ -60,7 +60,7 @@ module Projects::CustomFields # modification happens via the api, then set the available_custom_fields accordingly. This allows # the extension to be completely removed from the acts_as_customizable plugin. def all_available_custom_fields - @all_available_custom_fields ||= ProjectCustomField + ProjectCustomField .includes(:project_custom_field_section) .order("custom_field_sections.position", :position_in_custom_field_section) end