mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 23:54:43 +08:00
Please the Hound
This commit is contained in:
parent
9c28608fbf
commit
6a7e383316
1 changed files with 4 additions and 1 deletions
|
@ -319,7 +319,10 @@ class Protocol < ActiveRecord::Base
|
||||||
|
|
||||||
# Copy tables
|
# Copy tables
|
||||||
step.tables.each do |table|
|
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.created_by = current_user
|
||||||
table2.last_modified_by = current_user
|
table2.last_modified_by = current_user
|
||||||
table2.team = dest.team
|
table2.team = dest.team
|
||||||
|
|
Loading…
Add table
Reference in a new issue