From f4fdb840d899ac60a5365f2f507d743f82e986c2 Mon Sep 17 00:00:00 2001 From: zmagod Date: Wed, 12 Apr 2017 09:05:54 +0200 Subject: [PATCH] fixes the user_name field in csv export [fixes SCI-1189] --- app/models/zip_export.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/zip_export.rb b/app/models/zip_export.rb index a1acefca0..f73719edc 100644 --- a/app/models/zip_export.rb +++ b/app/models/zip_export.rb @@ -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