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

reset frozen variable

ulferts7faae88bb270
diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb
index 79781a72874..933b963e841 100644
--- a/config/initializers/application_controller_renderer.rb
+++ b/config/initializers/application_controller_renderer.rb
@@ -5,9 +5,10 @@
# - https://github.com/hotwired/turbo-rails/issues/155
# - https://github.com/rails/rails/issues/41795
ActiveSupport::Reloader.to_prepare do
- ApplicationController.renderer.instance_variable_get(:@env).merge!(
- 'HTTP_HOST' => Setting.host_name,
- 'HTTPS' => Setting.https?,
- 'SCRIPT_NAME' => OpenProject::Configuration.rails_relative_url_root
- )
+ ApplicationController.renderer.instance_variable_set(:@env,
+ ApplicationController.renderer.instance_variable_get(:@env).merge(
+ 'HTTP_HOST' => Setting.host_name,
+ 'HTTPS' => Setting.https?,
+ 'SCRIPT_NAME' => OpenProject::Configuration.rails_relative_url_root
+ ))
end