CS2007: Temporary Bug Fix for Forum Posts
UPDATE 06/12/2007: Telligent has released SP2 for CS 2007 which contains this fix.
There is a bug in CS 2007 where many of the properties of a forum post are not set prior to executing the post events. If you are using the SDK, you can make the following changes yourself to correct the issue until Telligent is able to provide a patch. If you are not using the SDK, you will have to wait for Telligent to provide a patch as it is a license violation for me to do this for you. Here is the change:
File: CommunityServerForums20/Controls/Forms/CreateEditForumPostForm.cs:
Around line 909:
After the following lines:
post.Username = editedPost.Username;
post.UserID = editedPost.UserID;
post.IsIgnoredPost = editedPost.IsIgnoredPost;
insert the following lines:
//TODO: Missing properties
post.Categories = editedPost.Categories;
post.FormattedBody = editedPost.FormattedBody;
post.ParentID = editedPost.ParentID;
post.SectionID = editedPost.SectionID;
post.ThreadID = editedPost.ThreadID;
post.ThreadDate = editedPost.ThreadDate;
post.ThreadStartDate = editedPost.ThreadStartDate;
post.ThreadStarterUsername = editedPost.ThreadStarterUsername;
post.ThreadIDNext = editedPost.ThreadIDNext;
post.ThreadIDPrev = editedPost.ThreadIDPrev;
post.SortOrder = editedPost.SortOrder;
post.Replies = editedPost.Replies;
post.IsApproved = editedPost.IsApproved;
post.AttachmentFilename = editedPost.AttachmentFilename;
post.Views = editedPost.Views;
post.HasRead = editedPost.HasRead;
post.UserHostAddress = editedPost.UserHostAddress;
post.PostMedia = editedPost.PostMedia;
//post.PostConfigurationValue;
//post.ApplicationPostTypeValue;
post.Name = editedPost.Name;
post.UserTime = editedPost.UserTime;
post.SetSerializerData(editedPost.GetSerializerData());
post.Points = editedPost.Points;
post.TotalRatings = editedPost.TotalRatings;
post.RatingSum = editedPost.RatingSum;
post.PostStatus = editedPost.PostStatus;
post.SpamScore = editedPost.SpamScore;