Skip to content

Commit

Permalink
FIX: TOPIC_NEEDS_EXPERT_POST_APPROVAL should be a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwaterworth committed Dec 7, 2023
1 parent 9192a5e commit 0a376c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/category_experts/post_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def mark_post_for_approval(skip_validations: false)
end

if topic.custom_fields[CategoryExperts::TOPIC_EXPERT_POST_GROUP_NAMES].blank?
topic.custom_fields[CategoryExperts::TOPIC_NEEDS_EXPERT_POST_APPROVAL] = post.post_number
topic.custom_fields[CategoryExperts::TOPIC_NEEDS_EXPERT_POST_APPROVAL] = true
topic.custom_fields.delete(CategoryExperts::TOPIC_FIRST_EXPERT_POST_ID)
should_remove_auto_tag = true
else
Expand Down
2 changes: 1 addition & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Engine < ::Rails::Engine

register_topic_custom_field_type(CategoryExperts::TOPIC_EXPERT_POST_GROUP_NAMES, :string)
register_topic_custom_field_type(CategoryExperts::TOPIC_FIRST_EXPERT_POST_ID, :integer)
register_topic_custom_field_type(CategoryExperts::TOPIC_NEEDS_EXPERT_POST_APPROVAL, :integer)
register_topic_custom_field_type(CategoryExperts::TOPIC_NEEDS_EXPERT_POST_APPROVAL, :boolean)
register_topic_custom_field_type(CategoryExperts::TOPIC_IS_CATEGORY_EXPERT_QUESTION, :boolean)

[
Expand Down

0 comments on commit 0a376c8

Please sign in to comment.