There was a set of discussion lists created on a WSS 3.0 site. The issue we saw
was that when a column was added to the discussion list AFTER it was created and
the new column was modified, the FLAT view that shows the discussion thread
throws the first post down to the bottom of the list and the person who modified
the post is listed, NOT the creater of the post.
It turns out that the FLAT view shows the modified by/modified (date) in
ascending order.
SO, I ended up writing a small program to set the modified by/modified (date)
back to the original poster. It's a small console app that seemed to do the job
nicely. If someone knows a better method let me know!
foreach (SPList list in web.Lists)
{
if (list.BaseTemplate.ToString() == "DiscussionBoard")
{
discussionitems = web.Lists[list.Title];
foreach (SPListItem folder in discussionitems.Folders)
{
if (folder.Fields["Modified
By"].GetFieldValueAsText(folder["Modified By"]) != folder.Fields["Created
By"].GetFieldValueAsText(folder["Created By"]))
{
folder["Modified"] = folder["Created"];
folder["Modified By"] = folder["Created By"];
folder.Update();
}
}
}
}
Do you know someone who can help? Share a link to this thread on twitter, or facebook.