Merge pull request #3466 from techAPJ/patch-2
FIX: user archive export was failing in some cases
This commit is contained in:
commit
c23aeddccf
|
@ -134,7 +134,7 @@ module Jobs
|
||||||
# deleted topic
|
# deleted topic
|
||||||
topic_data = Topic.with_deleted.find_by(id: user_archive['topic_id'])
|
topic_data = Topic.with_deleted.find_by(id: user_archive['topic_id'])
|
||||||
end
|
end
|
||||||
category = topic_data.category
|
category = topic_data.category if topic_data
|
||||||
sub_category = "-"
|
sub_category = "-"
|
||||||
if category
|
if category
|
||||||
category_name = category.name
|
category_name = category.name
|
||||||
|
|
Loading…
Reference in New Issue