Closed arnisjuraga closed 8 years ago
Hi I run into this same problem only when searching Wiki pages. Issues / Documents search OK.
The error shows as arnisjuraga comments above.
If I had more time I would fix the problem; it appears to be straightforward in setting up the LEFT OUTER JOIN. I just don't understand how to modify scope correctly.
Comment out the offending section in plugins/redmine_tagging/init.rb
and wiki search works:
ActionDispatch::Callbacks.to_prepare do
[...cut...]
unless WikiPage.searchable_options[:include] && WikiPage.searchable_options[:include].include?(:wiki_page_tags)
# WikiPage.searchable_options[:columns] << "#{WikiPageTag.table_name}.tag"
#
# # For redmine < 3
# WikiPage.searchable_options[:include] ||= []
# WikiPage.searchable_options[:include] << :wiki_page_tags
#
# # For redmine > 3
# WikiPage.searchable_options[:scope] = proc { WikiPage.includes(:wiki_page_tags) }
end
end
This should be fixed by #72.
When searching in Redmine, we receive an error: