Open iwasi-1234 opened 3 years ago
I have the same issue
I confirmed that this issue occurs in PostgreSQL and doesn't in MySQL.
My workaround is as follows:
--- app/controllers/categories_controller.rb.bak 2021-10-21 23:10:28.015888777 +0900
+++ app/controllers/categories_controller.rb 2021-10-22 01:56:43.067936471 +0900
@@ -127,7 +127,7 @@
@tag = params[:tag]
@tag_array = *@tag.split(',')
@tag_hash = Hash[ @tag_array.map{ |tag| [tag.downcase, 1] } ]
- @articles = KbArticle.where(id: @articles.tagged_with(@tag).map(&:id))
+ @articles = KbArticle.where('kb_articles.id in (?)', @articles.tagged_with(@tag).map(&:id))
end
@tags = @articles.tag_counts.sort { |a, b| a.name.downcase <=> b.name.downcase }
I don't test on MySQL.
Regards,
Environment
Description
I migrated from redmine 3.4.13 to redmine 4.1. I could create KB article and show the article on "overview"/"content". But I couldn't refer to tag link, and displayed "Internal error" message:![knowlegdebase_overview](https://user-images.githubusercontent.com/76514641/102983732-de586500-454f-11eb-92c1-89ffe36035f4.png)
And following message were confirmed in production.log:
tagtest
is sample tag.Is any workaround of this issue?
Regards,