Fix field not being preloaded in multisite setup.
This commit is contained in:
parent
1198421261
commit
83b4e9fe3f
|
@ -33,12 +33,7 @@ after_initialize do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# We can remove this check once this method is stable
|
TopicList.preloaded_custom_fields << "assigned_to_id"
|
||||||
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.on_preload do |topics, topic_list|
|
TopicList.on_preload do |topics, topic_list|
|
||||||
if SiteSetting.assign_enabled?
|
if SiteSetting.assign_enabled?
|
||||||
|
|
Loading…
Reference in New Issue