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 Error msg after token has been saved

Inga Maicc67efc178e5
diff --git a/app/controllers/enterprises_controller.rb b/app/controllers/enterprises_controller.rb
index b3cf4920aa2..7537d79fd14 100644
--- a/app/controllers/enterprises_controller.rb
+++ b/app/controllers/enterprises_controller.rb
@@ -54,7 +54,6 @@ class EnterprisesController < ApplicationController
@token.encoded_token = params[:enterprise_token][:encoded_token]
if @token.save
flash[:notice] = t(:notice_successful_update)
- redirect_to action: :show
else
# restore the old token
if saved_encoded_token