MyBB Community Forums
[Pushed] Quick reply wrong $postcounter - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html)
+---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html)
+----- Forum: Pushed (https://community.mybb.com/forum-183.html)
+----- Thread: [Pushed] Quick reply wrong $postcounter (/thread-168745.html)



Quick reply wrong $postcounter - Omar G. - 2015-03-21

After making a quick in a post where there are soft deleted posts the reply apepasr in the same page, after refreshing the post is moved to another page if applicable.

				// Set post counter
				if($ismod == true)
				{
					$postcounter = $thread['replies'] + $thread['unapprovedposts'] + 1;
				}
				else
				{
					$postcounter = $thread['replies'] + 1;
				}

The ajax quick reply code doesn't considers soft deleted posts and assumes the moderator can see unapproved/deleted posts.


RE: Quick reply wrong $postcounter - Jones H - 2015-07-02

Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/2122

Thanks for contributing to MyBB!

Regards,
The MyBB Group