mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 21:55:20 +08:00
Hopefully fixes the encoding issues with audit trails
Closes SCI-1175.
This commit is contained in:
parent
6a7e383316
commit
9479b65140
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue