Meet the Other Phone. A phone that grows with your child.

Meet the Other Phone.
A phone that grows with your child.

Buy now

Please or to access all these features

Site stuff

Join our Innovation Panel to try new features early and help make Mumsnet better.

Off-by-one error in topic lists

0 replies

davidsong · 12/09/2020 22:54

Steps

  1. Post a thread
  2. Return to topic containing the thread you posted, or view the thread list in the "I'm on" link.

Expected result

The number of replies should be one less than the number of total posts.

Actual result

The number of replies includes the first post, which isn't a reply.

Summary

See attached screenshot.

A thread with no replies should have a count of 0 not 1. If there's 1 of them, then it's the number of "posts" not the number of "replies". Classic "off-by-one" error.

Pretty embarrassing that this schoolboy error has been here for 10 years! Have you no shame?

Off-by-one error in topic lists
OP posts:
New posts on this thread. Refresh page