Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-8267 now.

"Last Post" updated when replying to unapproved topics (duplicate)

If you reply to a topic, the last-post information for the forum is updated. Thats what it should, but not, when the topic is not approved sofar. (You also need to keep that in mind, when "reseting" the last-post, after the last-topic was deleted)

Comments / History

Posted by narqelion (I've Been Banned!) on Apr 13th 2009, 20:24

That happens quite a bit on the support forum here. Just today Brf replied to a topic that had not yet been approved and when I clicked on his last post icon from the index page, I got the "topic does not exist" message. ;)

Posted by Acyd Burn (Server Manager) on Apr 14th 2009, 10:10

Gah, replying to unapproved topics should be forbidden... an unapproved topic is not visible at all, the last post info should never be updated if the last post is unapproved.

I think we implemented a change recently where a reply to an unapproved topic made the topic approved and the first approved message being the start of the topic. I could be wrong here though and the topic is still invisible (then the last post info should not be updated and the topic not reachable and not visible by normal users).

Posted by nickvergessen (Development Team Member) on Apr 14th 2009, 10:13

I'm using SVN rev9447 so the current one, and it is not like you said AcydBurn. The problem still exists ;)

Edited post #150515

Action performed by nickvergessen (Development Team Member) on Apr 14th 2009, 10:14

Posted by Acyd Burn (Server Manager) on May 1st 2009, 09:37

For 3.2.x we need to find a better solution - there it should be possible to add comments and also add posts to unapproved topics/posts...

Assigned ticket to user "nickvergessen"

Action performed by nickvergessen (Development Team Member) on Jun 16th 2009, 15:03

Assigned ticket to user "TerraFrost"

Action performed by nickvergessen (Development Team Member) on Jun 16th 2009, 15:12

Posted by EXreaction (Former Team Member) on Jul 1st 2009, 17:04

Why do we not want to allow replies to the topic if it is not approved? A moderator might want to reply to it for some reason and have a hidden discussion in it.

It shouldn't be difficult to fix. Just don't update anything on the forums table if the post is being made to an unapproved topic. Once the topic is approved then go through and count only the approved posts in the topic (another bug), and check to see if the last post in the topic is newer than the last post recorded on the forum.

Posted by leviatan21 on Jul 14th 2009, 01:33

Please take a look at this patch
bug-44005.patch (3.92 KB)

Linked ticket with changeset: r9971

Action performed by TerraFrost (Former Team Member) on Aug 13th 2009, 21:17

Changed ticket status from "New" to "Duplicate"

Action performed by TerraFrost (Former Team Member) on Aug 13th 2009, 21:27

Edited ticket

Action performed by TerraFrost (Former Team Member) on Aug 13th 2009, 21:27

Posted by TerraFrost (Former Team Member) on Aug 13th 2009, 21:28

Bug #PHPBB3-23605 and Bug #PHPBB3-47675 were fixed with the same patch this bug was fixed with.

Marked ticket as duplicate of #23605

Action performed by bantu (3.0 Release Manager) on Aug 13th 2009, 21:29

Ticket details

Duplicates of #23605

Related SVN changesets