mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
rename 'is_support' to 'contains_messages'
This commit is contained in:
@ -540,7 +540,7 @@ class Topic < ActiveRecord::Base
|
||||
|
||||
def change_category_to_id(category_id)
|
||||
return false if private_message?
|
||||
return false if category.try(:is_support)
|
||||
return false if category.try(:contains_messages)
|
||||
|
||||
new_category_id = category_id.to_i
|
||||
# if the category name is blank, reset the attribute
|
||||
|
Reference in New Issue
Block a user