From a69bd4040161524eba632e608431d39bd496ce16 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 29 Sep 2017 11:07:31 -0400 Subject: [PATCH] Revert "Revert "Fix field not being preloaded in multisite setup."" This reverts commit e7ca1ffbf7e9c737e7bf305f80973beb10b58fd5. --- plugin.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugin.rb b/plugin.rb index 2f43850..7badd29 100644 --- a/plugin.rb +++ b/plugin.rb @@ -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?