FIX: Only save custom fields when unassigning a topic.
This commit is contained in:
parent
949ccb07ca
commit
6e7f01e5d4
|
@ -194,7 +194,7 @@ SQL
|
|||
if assigned_to_id = @topic.custom_fields["assigned_to_id"]
|
||||
@topic.custom_fields["assigned_to_id"] = nil
|
||||
@topic.custom_fields["assigned_by_id"] = nil
|
||||
@topic.save!
|
||||
@topic.save_custom_fields
|
||||
|
||||
post = @topic.posts.where(post_number: 1).first
|
||||
return unless post.present?
|
||||
|
|
Loading…
Reference in New Issue