Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Open)
 Incorrect Forum Topic Totals Update
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

atoms
Starting Member

Canada
26 Posts

Posted - 17 June 2002 :  17:43:47  Show Profile
Not sure if this is a known bug but I can't seem to find this anywhere. There is an extra forum topic total update when an on-hold reply gets approved.

Line 521 and 522 of pop_moderate.asp:

********************************************************
strSql = "UPDATE " & strTablePrefix & "FORUM "
strSql = strSql & " SET " & strTablePrefix & "FORUM.F_COUNT = " & strTablePrefix & "FORUM.F_COUNT + 1, "
strSql = strSql & strTablePrefix & "FORUM.F_TOPICS = " & strTablePrefix & "FORUM.F_TOPICS + 1 "

********************************************************

My suggested fix:
********************************************************
strSql = "UPDATE " & strTablePrefix & "FORUM "
strSql = strSql & " SET " & strTablePrefix & "FORUM.F_COUNT = " & strTablePrefix & "FORUM.F_COUNT + 1 "
if UpdateType = "Topic" then
      strSql = strSql & ", " & strTablePrefix & "FORUM.F_TOPICS = " & strTablePrefix & "FORUM.F_TOPICS + 1 "
end if

********************************************************

- atoms

Edited by - atoms on 18 June 2002 16:07:50
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07