Skip to content

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

Correct array to pass to the success message after multiple principals have been added as members

Henriette Darge359293819422
diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb
index 92802c4bc39..3e6f187cf23 100644
--- a/app/controllers/members_controller.rb
+++ b/app/controllers/members_controller.rb
@@ -55,7 +55,7 @@ class MembersController < ApplicationController
if overall_result.empty?
redirect_to project_members_path(project_id: @project, status: 'all')
elsif overall_result.all?(&:success?)
- display_success(members_added_notice(overall_result.count))
+ display_success(members_added_notice(overall_result.map(&:result)))
redirect_to project_members_path(project_id: @project, status: 'all')
else