From cd4c34204d9a01f07202e030030c6ee5aa60a20b Mon Sep 17 00:00:00 2001 From: shakti katare Date: Tue, 19 Apr 2016 18:02:01 +0530 Subject: [PATCH] Fix: Suspensions and Blocks do not give enough details in logs --- app/jobs/regular/export_csv_file.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/jobs/regular/export_csv_file.rb b/app/jobs/regular/export_csv_file.rb index ddb6d6b9290..7c69a3a3fe2 100644 --- a/app/jobs/regular/export_csv_file.rb +++ b/app/jobs/regular/export_csv_file.rb @@ -225,13 +225,15 @@ module Jobs elsif attr == 'staff_user' user = User.find_by(id: staff_action.attributes['acting_user_id']) user.username if !user.nil? + elsif attr == 'subject' + user = User.find_by(id: staff_action.attributes['target_user_id']) + user.nil? ? staff_action.attributes[attr] : "#{user.username} #{staff_action.attributes[attr]}" else staff_action.attributes[attr] end staff_action_array.push(data) end - staff_action_array end