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

Add error message when trying to create without a member being chosen

Henriette Dargef06e25d22e85
diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb
index 3e6f187cf23..545b041a4ab 100644
--- a/app/controllers/members_controller.rb
+++ b/app/controllers/members_controller.rb
@@ -53,6 +53,7 @@ class MembersController < ApplicationController
end
if overall_result.empty?
+ flash[:error] = I18n.t('activerecord.errors.models.member.principal_blank')
redirect_to project_members_path(project_id: @project, status: 'all')
elsif overall_result.all?(&:success?)
display_success(members_added_notice(overall_result.map(&:result)))