mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-29 11:12:01 +08:00
(fix) Missing page data at opening result page from link [SCI-9462]
This commit is contained in:
parent
80735c0a01
commit
e8c74a057e
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue