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

Fix a bug where wrong args were expected in PermittedParams for message

Klaus Zanders087e0da18e0a
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb
index b33a45c97cc..9a30c929a25 100644
--- a/app/controllers/messages_controller.rb
+++ b/app/controllers/messages_controller.rb
@@ -74,7 +74,7 @@ class MessagesController < ApplicationController
def edit
return render_403 unless @message.editable_by?(User.current)
- @message.attributes = permitted_params.message(@message)
+ @message.attributes = permitted_params.message(@message.project)
end
# Create a new topic