From 750a275dcb883e27063e398094fc31d2eeb66590 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 14 May 2015 20:35:25 +0530 Subject: [PATCH] FIX: user archive export was failing in some cases --- app/jobs/regular/export_csv_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/regular/export_csv_file.rb b/app/jobs/regular/export_csv_file.rb index 5a7e4d741a3..c14cdb80b46 100644 --- a/app/jobs/regular/export_csv_file.rb +++ b/app/jobs/regular/export_csv_file.rb @@ -134,7 +134,7 @@ module Jobs # deleted topic topic_data = Topic.with_deleted.find_by(id: user_archive['topic_id']) end - category = topic_data.category + category = topic_data.category if topic_data sub_category = "-" if category category_name = category.name