mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
fixes the user_name field in csv export [fixes SCI-1189]
This commit is contained in:
parent
3d9323c8d7
commit
f4fdb840d8
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ class ZipExport < ActiveRecord::Base
|
|||
CSV.open(file, 'wb') do |csv|
|
||||
csv << attributes
|
||||
records.find_each do |entity|
|
||||
csv << entity.audit_record.values_at(*attributes.map(&:to_sym))
|
||||
csv << entity.audit_record(formated: false)
|
||||
.values_at(*attributes.map(&:to_sym))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue