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

Write gon also on create response

Oliver Günther0b0b23a28a56
diff --git a/app/controllers/enterprises_controller.rb b/app/controllers/enterprises_controller.rb
index 20da5e2c879..f2334bd8017 100644
--- a/app/controllers/enterprises_controller.rb
+++ b/app/controllers/enterprises_controller.rb
@@ -36,13 +36,12 @@ class EnterprisesController < ApplicationController
before_action :require_admin
before_action :check_user_limit, only: [:show]
before_action :check_domain, only: [:show]
+ before_action :render_gon
def show
@current_token = EnterpriseToken.current
@token = @current_token || EnterpriseToken.new
- helpers.write_augur_to_gon
-
if !@current_token.present?
helpers.write_trial_key_to_gon
end
@@ -95,6 +94,10 @@ class EnterprisesController < ApplicationController
private
+ def render_gon
+ helpers.write_augur_to_gon
+ end
+
def default_breadcrumb
t(:label_enterprise_edition)
end