Fix result texts/tables

This commit is contained in:
Jure Grabnar 2016-08-10 13:57:29 +02:00
parent 52e6d7d300
commit 1ca34a7986
2 changed files with 6 additions and 6 deletions

View file

@ -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",

View file

@ -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",