From 346bffe08f6910dd283509fa0aa8f82224efa079 Mon Sep 17 00:00:00 2001 From: zmagod Date: Tue, 26 Jul 2016 09:17:24 +0200 Subject: [PATCH] fixed protocol.rb --- app/models/protocol.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/protocol.rb b/app/models/protocol.rb index 408f234e7..2b30bc5b4 100644 --- a/app/models/protocol.rb +++ b/app/models/protocol.rb @@ -148,7 +148,7 @@ class Protocol < ActiveRecord::Base def self.new_blank_for_module(my_module) Protocol.new( - organization: my_module.project.organization, + organization: my_module.experiment.project.organization, protocol_type: :unlinked, my_module: my_module ) @@ -611,4 +611,4 @@ class Protocol < ActiveRecord::Base self.parent.decrement!(:nr_of_linked_children) if self.parent.present? end -end \ No newline at end of file +end