Please the Hound

This commit is contained in:
Luka Murn 2017-04-18 15:38:11 +02:00
parent 9c28608fbf
commit 6a7e383316

View file

@ -319,7 +319,10 @@ class Protocol < ActiveRecord::Base
# Copy tables
step.tables.each do |table|
table2 = Table.new(name: table.name, contents: table.contents.force_encoding('UTF-8'))
table2 = Table.new(
name: table.name,
contents: table.contents.force_encoding(table.contents.encoding)
)
table2.created_by = current_user
table2.last_modified_by = current_user
table2.team = dest.team