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
avoid appending to user cf link closure
ulfertseb6a94eb3fac
diff --git a/lib/api/v3/utilities/custom_field_injector.rb b/lib/api/v3/utilities/custom_field_injector.rbindex 1ce81b4f352..e70e51d2958 100644--- a/lib/api/v3/utilities/custom_field_injector.rb+++ b/lib/api/v3/utilities/custom_field_injector.rb@@ -303,7 +303,10 @@ module APIrepresented.project_id.to_send- filters = static_filters << { member: { operator: '=', values: [project_id_value.to_s] } }+ # Careful to not alter the static_filters object here.+ # It is made available in the closure (which is class level) and would thus+ # keep the appended filters between requests.+ filters = static_filters + [{ member: { operator: '=', values: [project_id_value.to_s] } }]api_v3_paths.path_for(:principals, filters: filters, page_size: 0)}