fixes the user_name field in csv export [fixes SCI-1189]

This commit is contained in:
zmagod 2017-04-12 09:05:54 +02:00
parent 3d9323c8d7
commit f4fdb840d8

View file

@ -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