Hi:
In discussion sections, topic list shows duplicated topics: it shows an entry for each comment author ON EACH topic. So it's not working right since it's supposed to show each topic only once.
The problem is in "Open Atrium Comment Topic List (Content)" view. Last field "comment: author" uses comment relation and aggregates on it. It should use "Last comment" relation instead.
To solve the problem:
- I've added a new relation: Las comment
- I've edited last field in Fields view section (comments - comment: author) to use this new relation (last comment - comment: author)
And now... it works!
It would be nice to have this in next version so it doesn't get overwrote on updates.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | oa_comment-discussion_topic_list-2830849-4.patch | 1.63 KB | mpotter |
Comments
Comment #2
mpotter commentedCan you post a simple step-by-step procedure for reproducing this? Like exactly what discussion posts should be made to see this?
Comment #3
neurojavi commented1.- Create a new discussion topic with user A
2.- Post a reply/comment with user B
3.- Post a reply/comment with user C
In discussion section main page you'll see 2 entries for this topic, one with last comment from user B and another one with last comment from user C. Only this last one should appear.
The problem is in the view relation as written above.
Comment #4
mpotter commentedThanks! I was able to reproduce the issue. This used to work and it seems like lots of people would have reported this, so not sure when it broke. But your suggestion on using Last Comment worked great. Here is the patch to the oa_comments module for it.
Can you confirm that this patch works for you?
Comment #5
gandhiano commentedThanks for this patch. I have tested that it works properly on an OA 2.612 instance.
Comment #6
mpotter commentedCommitted to 6fb7fb1.