From d79cec75d09883b6233d0bdae91bc5015de7d113 Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 1 Jul 2014 17:57:58 -0400 Subject: [PATCH] fixes #2208 --- app/models/bulk_update_request.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/bulk_update_request.rb b/app/models/bulk_update_request.rb index 5fddeeb26..528335625 100644 --- a/app/models/bulk_update_request.rb +++ b/app/models/bulk_update_request.rb @@ -39,7 +39,9 @@ class BulkUpdateRequest < ActiveRecord::Base end def create_forum_topic - unless forum_topic_id + if forum_topic_id + ForumPost.create(:body => reason_with_link, :topic_id => forum_topic_id) + else forum_topic = ForumTopic.create(:title => "[bulk] #{title}", :category_id => 1, :original_post_attributes => {:body => reason_with_link}) update_attribute(:forum_topic_id, forum_topic.id) end