#24 Article Count is Wrong

closed-fixed
None
7
2000-05-09
2000-04-28
Anonymous
No

The select box that shows the moderation points and the number of articles per is incorrect. Try http://beta.slashdot.org/article.pl?sid=00/04/27/1429226&mode=nested&threshold=5 for an example. As of this posting, the selection box says there are two articles moderated up to 5, yet there's only one, and so on....

Discussion

  • Chris Nandor

    Chris Nandor - 2000-05-01
    • status: open --> open-later
     
  • Chris Nandor

    Chris Nandor - 2000-05-01

    Aha. I found the bug. Somehow a comment in that article has points of -2, which throws everything off. Working on a good fix for the problem (which is larger than this specific problem).

     
  • Chris Nandor

    Chris Nandor - 2000-05-01
    • priority: 5 --> 7
     
  • Chris Nandor

    Chris Nandor - 2000-05-02
    • assigned_to: nobody --> pudge
     
  • Chris Nandor

    Chris Nandor - 2000-05-09

    OK, fixed. The problem had to do with out-of-bounds points for a post. If a post had points of -2, it showed up in the count as having 5 (since it would be added as an array index of -1, which is the same as array index 6 in an array of seven elements). Ick. Made it so any post with points < -1 would be -1, and > 5 would be 5.

     
  • Chris Nandor

    Chris Nandor - 2000-05-09
    • status: open-later --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks