FIX: category id wasn't stored when enqueueing a topic

This commit is contained in:
Robin Ward
2019-04-02 11:11:43 -04:00
parent ef3dd83367
commit 123c05cb07
2 changed files with 22 additions and 0 deletions

View File

@@ -188,6 +188,7 @@ class NewPostManager
reviewable_by_moderator: true
)
reviewable.payload['title'] = @args[:title] if @args[:title].present?
reviewable.category_id = args[:category] if args[:category].present?
create_options = reviewable.create_options