fixes cloned experiment protocol [fixes SCI-376]

This commit is contained in:
zmagod 2016-08-23 16:15:45 +02:00
parent ed1cd193ac
commit 2bbb439745
2 changed files with 8 additions and 1 deletions

View file

@ -308,6 +308,13 @@ class MyModule < ActiveRecord::Base
clone.protocols << self.protocol.deep_clone_my_module(self, current_user)
clone.reload
# fixes linked protocols
clone.protocols.each do |protocol|
next unless protocol.linked?
protocol.updated_at = protocol.parent_updated_at
protocol.save
end
return clone
end

View file

@ -144,4 +144,4 @@
</ul>
<% end %>
<% end %>
</div>
</div>