Page 1 of 1

Latest News showing +1 reply when there are no replies

Posted: 9. July 2015 13:43
by kooljp
Your Portal Version: 2.1.0-rc2
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Basic Knowledge
Boardlink: http://www.fishing-victoria.com/

PHP Version: 5.5.22

What have you done before the problem was there?
Recent portal update to 2.1.0-rc2
Was showing 0 replies when a new topic was posted


What have you already tryed to solve the problem?
Now it is showing one reply when there is just the first post.

Description and Message
With the "Latest News" Portal module, the reply count is counting the initial post now and showing 1 reply when it should be "0".

Any ideas on how to fix the replies count to zero when there are no replies?

(See pic below)
http://www.fishing-victoria.com/images/replies.png


Cheers

Re: Latest News showing +1 reply when there are no replies

Posted: 9. July 2015 17:11
by Kirk

Re: Latest News showing +1 reply when there are no replies

Posted: 9. July 2015 17:51
by kooljp
Kirk wrote:Try it with this change: https://github.com/board3/Board3-Portal/pull/501/files
Thanks Kirk!

I presume its just the -1,-1 to change in portal/fetch_posts.php?

Re: Latest News showing +1 reply when there are no replies

Posted: 9. July 2015 19:24
by Kirk
That is correct