fixed protocol.rb

This commit is contained in:
zmagod 2016-07-26 09:17:24 +02:00
parent c27ffa9fbf
commit 346bffe08f

View file

@ -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
end