We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4f6d24 commit ee155c9Copy full SHA for ee155c9
app/controllers/community_custom_fields/custom_fields_controller.rb
@@ -7,7 +7,7 @@ class CommunityCustomFields::CustomFieldsController < ::ApplicationController
7
before_action :ensure_admin
8
9
def update
10
- topic = Topic.find(params[:topic_id])
+ topic = Topic.unscoped.find(params[:topic_id])
11
topic.custom_fields.merge!(custom_fields_params)
12
if topic.save_custom_fields
13
topic.touch
plugin.rb
@@ -112,6 +112,7 @@ module ::CommunityCustomFields
112
topic.custom_fields[:assignee_id] = topic.custom_fields[:last_assigned_to_id]
113
topic.custom_fields[:last_assigned_at] = Time.current.iso8601
114
end
115
+
116
topic.custom_fields[:outcome] = nil
117
topic.custom_fields[:closed_at] = nil
118
0 commit comments