mirror of
https://github.com/discourse/discourse-solved.git
synced 2026-09-17 06:52:14 -04:00
Only include can_have_answer if empty_box_on_unsolved is true. Thanks @SamSaffron
This commit is contained in:
@@ -351,6 +351,10 @@ SQL
|
||||
|
||||
return scope.allow_accepted_answers_on_category?(object.category_id)
|
||||
end
|
||||
|
||||
def include_can_have_answer?
|
||||
SiteSetting.empty_box_on_unsolved
|
||||
end
|
||||
end
|
||||
|
||||
TopicList.preloaded_custom_fields << "accepted_answer_post_id" if TopicList.respond_to? :preloaded_custom_fields
|
||||
|
||||
Reference in New Issue
Block a user