mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
don't cache the scope in Project#all_available_custom_fields
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user