FIX: Only save custom fields when assigning a topic.
This commit is contained in:
parent
d58aa482ba
commit
949ccb07ca
|
@ -127,7 +127,7 @@ SQL
|
||||||
def assign(assign_to, silent: false)
|
def assign(assign_to, silent: false)
|
||||||
@topic.custom_fields["assigned_to_id"] = assign_to.id
|
@topic.custom_fields["assigned_to_id"] = assign_to.id
|
||||||
@topic.custom_fields["assigned_by_id"] = @assigned_by.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 = @topic.posts.find_by(post_number: 1)
|
||||||
first_post.publish_change_to_clients!(:revised, reload_topic: true)
|
first_post.publish_change_to_clients!(:revised, reload_topic: true)
|
||||||
|
|
Loading…
Reference in New Issue