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
Change available_custom_fields query
Dombi Attila56a144510f70
diff --git a/app/models/projects/acts_as_customizable_patches.rb b/app/models/projects/acts_as_customizable_patches.rbindex 8f4fdc7bde3..a3366b418ba 100644--- a/app/models/projects/acts_as_customizable_patches.rb+++ b/app/models/projects/acts_as_customizable_patches.rb@@ -140,12 +140,12 @@ module Projects::ActsAsCustomizablePatches# when accessed with the _query_available_custom_fields_on_global_level flag on.unless _query_available_custom_fields_on_global_levelcustom_fields = custom_fields.visible+ end- # Limit the set of available custom fields when the validation is limited to a section- if _limit_custom_fields_validation_to_section_id- custom_fields =- custom_fields.where(custom_field_section_id: _limit_custom_fields_validation_to_section_id)- end+ # Limit the set of available custom fields when the validation is limited to a section+ if _limit_custom_fields_validation_to_section_id+ custom_fields =+ custom_fields.where(custom_field_section_id: _limit_custom_fields_validation_to_section_id)end# available_custom_fields is called from within the acts_as_customizable module