robogals / myrobogals

myRobogals is the global intranet and record-keeping tool for Robogals. It has been built to simplify many of our day-to-day tasks including organising school visits, maintaining a member database, communicating with members, storing records reliably for future generations and easily collecting statistics on a global scale.
https://my.robogals.org
10 stars 21 forks source link

Update last post when a post is deleted #54

Closed U-238 closed 11 years ago

U-238 commented 11 years ago

When the last post in a topic is deleted, the "last post" for that topic needs to be updated.

Example:

  1. The last post in a topic is by Mark Parncutt at 2:00pm Monday.
  2. Shane Lyndon posts in that topic at 4:30pm Tuesday. It is now the last post.
  3. Shane's post is then deleted. The last post in that topic should now be Mark's one again.

If the last post in that topic was also the last post in that forum - the forum's last post needs to be updated too.

U-238 commented 11 years ago

Yep you understood correct. And your implementation was correct too. Closed!