Revert "Revert "Fix field not being preloaded in multisite setup.""

This reverts commit e7ca1ffbf7.
This commit is contained in:
Robin Ward 2017-09-29 11:07:31 -04:00
parent 626965f94c
commit a69bd40401
1 changed files with 1 additions and 6 deletions

View File

@ -33,12 +33,7 @@ after_initialize do
end
end
# We can remove this check once this method is stable
if respond_to?(:add_preloaded_topic_list_custom_field)
add_preloaded_topic_list_custom_field('assigned_to_id')
else
TopicList.preloaded_custom_fields << "assigned_to_id"
end
TopicList.preloaded_custom_fields << "assigned_to_id"
TopicList.on_preload do |topics, topic_list|
if SiteSetting.assign_enabled?