Closed eyewritecode closed 5 years ago
Thanks for reporting this! I suppose, you use the addtionals macro {{members}}. Do you use any parameters to this macro? Which Redmine version to you use exactly? I cannot reproduce this problem in my environment with Redmine 4.0.2. Which database type and version do you use? MySQL 5.7 and PostgreSQL 9.6 I checked with no problems.
In your query there is an column named users.displayname. This is not part of Redmine or additionals. Which other plugins do you use? I suppose, it is a compatibility problem with the plugin, which adds this column.
Thanks for getting back to me. I'm using PostgreSQL 11.2 and this is my redmine information
Environment:
Redmine version 4.0.0.stable.17734
Ruby version 2.4.1-p111 (2017-03-22) [x86_64-darwin16]
Rails version 5.2.0
Environment development
Database adapter PostGIS
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Subversion 1.10.0
Git 2.17.2
Filesystem
Redmine plugins:
additionals 2.0.19
etc...
Yeah you're right, the displayname comes from our internal plugin that adds that column for "privacy" reasons and i guess that's what causes the conflict.
Any idea on how i should go about this?!!
Best solution would be, if you can drop DISTINCT. DISTINCT is very often a problem, you overwrite a query, which is used from other plugins, too.
Can I do anything for you regarding this issue or can we close it?
I'll go ahead and close it... I found a workaround on our plugin!
I upgraded to
Redmine 4.0
with:But i get this error when i try to render
issues/:id
.I tried to troubleshoot this and it seems like it's caused by the
sorted
method call added in this commitusing
works without problem