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.

Comments

neurojavi created an issue. See original summary.

mpotter’s picture

Can you post a simple step-by-step procedure for reproducing this? Like exactly what discussion posts should be made to see this?

neurojavi’s picture

1.- 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.

mpotter’s picture

Status: Active » Needs review
StatusFileSize
new1.63 KB

Thanks! 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?

gandhiano’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for this patch. I have tested that it works properly on an OA 2.612 instance.

mpotter’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 6fb7fb1.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.