diff --git a/app/models/my_module.rb b/app/models/my_module.rb index b1d431281..7f0bfd68d 100644 --- a/app/models/my_module.rb +++ b/app/models/my_module.rb @@ -312,6 +312,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 diff --git a/app/views/my_modules/protocols/_protocol_status_bar_buttons.html.erb b/app/views/my_modules/protocols/_protocol_status_bar_buttons.html.erb index 30b2766d4..2dc0b64c6 100644 --- a/app/views/my_modules/protocols/_protocol_status_bar_buttons.html.erb +++ b/app/views/my_modules/protocols/_protocol_status_bar_buttons.html.erb @@ -144,4 +144,4 @@ <% end %> <% end %> - \ No newline at end of file +