ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Forum threads aren't always displaying "Last Message" (Bug #968)


Added by Kris Lou at 2012-04-05 06:05 pm. Updated at 2012-05-24 09:22 pm.


Status:Closed Start date:2012-04-05
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Forums
Target version:3.2.0
Remote issue URL: Affected version:3.1.0

Description

On the public CP site, assuming its 3.0:

Even though the Base Forum (in this case, Discuss) displays the last message, the listing of threads themselves often show blank "Last Messages" even if there are valid reply counts.

See screenshot.


forums-lastmessage.jpg (353 kB) Kris Lou, 2012-04-05 06:05 pm


Associated revisions

Revision 87f68e58
Added by Felix Schäfer at 2012-05-19 11:38 am

Recalculate last reply of thread on message deletion #968

History

Updated by Holger Just at 2012-04-05 06:46 pm

We had a lot of spam recently. All the threads with no last message got it deleted.

The bug shows because we don't update the message parent's last_reply_id on destroy.

  • Affected version changed from 3.0.0 to 3.1.0

Updated by Felix Schäfer at 2012-05-19 09:40 am

Corrected in 87f68e5.

  • Target version set to 3.2.0
  • Status changed from Open to Closed

Updated by Kris Lou at 2012-05-24 04:22 pm

Very nice.

For completeness, can you also update the thread itself as well as the board counters?

Updated by Felix Schäfer at 2012-05-24 05:24 pm

Kris Lou wrote:

For completeness, can you also update the thread itself as well as the board counters?

I'm not sure what you mean, could you be more precise?

Updated by Kris Lou at 2012-05-24 05:34 pm

Sorry about being vague. I haven't looked into this (obviously), but I'm assuming that there are also individual discussion thread/message counters as well as the overall board-level counters. Would it be difficult to apply the same fix at the discussion level?

I.E. the status or last message updated within a specific thread inside the Discussion board?

Updated by Felix Schäfer at 2012-05-24 09:22 pm

Ah, I guess you mean the number of replies in a discussion, right?

Well, I had a quick look at the code, and that counter is handled by the same lib taking care of the response list (i.e. responsible for knowing which message is in which thread), so I guess it already works as expected. Looking at threads with deleted posts here on chiliproject.org confirms they work as expected.

If you could test it (for example on the demo system) and open a new issue assigned to me as needed, it would be pretty great.

Also available in: Atom PDF