When change a thread's belong forum, error occurs!

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/22/2009 1:59:42 AM
Gravatar
Total Posts 59

When change a thread's belong forum, error occurs!

OS: Win2003
DB:MSSQL
Version:2.3.1.2

Hi, Joe

Whe edit a thread in EditThread.aspx, change the below forum, error occurs:

Below code in DBForums.cs:

//////////////////////////////////////////////////////////////////////

public static bool RecalculatePostStats(int forumId)
{
SqlParameterHelper sph = new SqlParameterHelper(GetConnectionString(), "mp_Forums_RecalculatePostStats", 5); //5 should be 1,
sph.DefineSqlParameter("@ForumID", SqlDbType.Int, ParameterDirection.Input, forumId);
int rowsAffected = Convert.ToInt32(sph.ExecuteScalar());
return (rowsAffected > 0);
}

//////////////////////////////////////////////////////////////////////

mp_Forums_RecalculatePostStats in sqlserver only 1 param, so error occurs!

Thanks!

7/22/2009 6:20:48 AM
Gravatar
Total Posts 18439

Re: When change a thread's belong forum, error occurs!

Hi mjohn,

Thanks for the bug report and fix! I fixed my copy just now.

Best,

Joe 

You must sign in to post in the forums. This thread is closed to new posts.