mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Fix result texts/tables
This commit is contained in:
parent
52e6d7d300
commit
1ca34a7986
2 changed files with 6 additions and 6 deletions
|
@ -46,7 +46,7 @@ class ResultTablesController < ApplicationController
|
|||
Activity.create(
|
||||
type_of: :add_result,
|
||||
user: current_user,
|
||||
project: @my_module.project,
|
||||
project: @my_module.experiment.project,
|
||||
my_module: @my_module,
|
||||
message: t(
|
||||
"activities.add_table_result",
|
||||
|
@ -102,7 +102,7 @@ class ResultTablesController < ApplicationController
|
|||
if saved
|
||||
Activity.create(
|
||||
type_of: :archive_result,
|
||||
project: @my_module.project,
|
||||
project: @my_module.experiment.project,
|
||||
my_module: @my_module,
|
||||
user: current_user,
|
||||
message: t(
|
||||
|
@ -121,7 +121,7 @@ class ResultTablesController < ApplicationController
|
|||
Activity.create(
|
||||
type_of: :edit_result,
|
||||
user: current_user,
|
||||
project: @my_module.project,
|
||||
project: @my_module.experiment.project,
|
||||
my_module: @my_module,
|
||||
message: t(
|
||||
"activities.edit_table_result",
|
||||
|
|
|
@ -43,7 +43,7 @@ class ResultTextsController < ApplicationController
|
|||
Activity.create(
|
||||
type_of: :add_result,
|
||||
user: current_user,
|
||||
project: @my_module.project,
|
||||
project: @my_module.experiment.project,
|
||||
my_module: @my_module,
|
||||
message: t(
|
||||
"activities.add_text_result",
|
||||
|
@ -102,7 +102,7 @@ class ResultTextsController < ApplicationController
|
|||
if saved
|
||||
Activity.create(
|
||||
type_of: :archive_result,
|
||||
project: @my_module.project,
|
||||
project: @my_module.experiment.project,
|
||||
my_module: @my_module,
|
||||
user: current_user,
|
||||
message: t(
|
||||
|
@ -121,7 +121,7 @@ class ResultTextsController < ApplicationController
|
|||
Activity.create(
|
||||
type_of: :edit_result,
|
||||
user: current_user,
|
||||
project: @my_module.project,
|
||||
project: @my_module.experiment.project,
|
||||
my_module: @my_module,
|
||||
message: t(
|
||||
"activities.edit_text_result",
|
||||
|
|
Loading…
Reference in a new issue