FIX: Only save custom fields when assigning a topic.

This commit is contained in:
Guo Xiang Tan 2018-07-25 17:25:21 +08:00
parent d58aa482ba
commit 949ccb07ca
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ SQL
def assign(assign_to, silent: false)
@topic.custom_fields["assigned_to_id"] = assign_to.id
@topic.custom_fields["assigned_by_id"] = @assigned_by.id
@topic.save!
@topic.save_custom_fields
first_post = @topic.posts.find_by(post_number: 1)
first_post.publish_change_to_clients!(:revised, reload_topic: true)