Hopefully fixes the encoding issues with audit trails

Closes SCI-1175.
This commit is contained in:
Luka Murn 2017-04-19 08:35:04 +02:00
parent 6a7e383316
commit 9479b65140

View file

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