Skip to content

Commit 76a7352

Browse files
committed
touch topic on updating custom field
1 parent cbf8251 commit 76a7352

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/community_custom_fields/custom_fields_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def update
1010
topic = Topic.find(params[:topic_id])
1111
topic.custom_fields.merge!(custom_fields_params)
1212
if topic.save_custom_fields
13+
topic.touch
1314
render json: success_json
1415
else
1516
Rails.logger.error("Failed to save custom fields for topic #{topic.id}: #{topic.errors.full_messages}")

0 commit comments

Comments
 (0)