From e8c74a057ee220dbfb7554be8a7f2723e66d72ad Mon Sep 17 00:00:00 2001 From: Gregor Lasnibat Date: Tue, 6 Feb 2024 12:59:37 +0100 Subject: [PATCH] (fix) Missing page data at opening result page from link [SCI-9462] --- app/controllers/results_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/results_controller.rb b/app/controllers/results_controller.rb index 19ca74efa..e2e38ef45 100644 --- a/app/controllers/results_controller.rb +++ b/app/controllers/results_controller.rb @@ -2,6 +2,7 @@ class ResultsController < ApplicationController include Breadcrumbs + include TeamsHelper skip_before_action :verify_authenticity_token, only: %i(create update destroy duplicate) before_action :load_my_module before_action :load_vars, only: %i(destroy elements assets upload_attachment archive restore destroy @@ -175,6 +176,7 @@ class ResultsController < ApplicationController def load_my_module @my_module = MyModule.readable_by_user(current_user).find(params[:my_module_id]) + current_team_switch(@my_module.team) if current_team != @my_module.team end def load_vars