Skip to content

Commit

Permalink
Merge pull request #1261 from johnhenley/issues/filtertopics-1254
Browse files Browse the repository at this point in the history
FIX: Incorrect author shown in filtered topics view immediately after a reply
  • Loading branch information
WillStrohl authored Feb 6, 2025
2 parents b52f9ce + bc96abe commit 8bab74c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dnn.CommunityForums/CustomControls/UserControls/TopicView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1028,10 +1028,13 @@ private string ParseContent(DataRow dr, string template, int rowcount)
{
var sOutput = template;

// most topic values come in first result set and are set in LoadData(); however some, like IP Address and contentId, comes in this result set.
this.topic.Content.IPAddress = dr.GetString("IPAddress");
this.topic.ContentId = dr.GetInt("ContentId");
this.topic.Content.ContentId = dr.GetInt("ContentId");
if (dr.GetInt("ReplyId").Equals(0))
{
// most topic values come in first result set and are set in LoadData(); however some, like IP Address and contentId, comes in this result set.
this.topic.Content.IPAddress = dr.GetString("IPAddress");
this.topic.ContentId = dr.GetInt("ContentId");
this.topic.Content.ContentId = dr.GetInt("ContentId");
}

var reply = new DotNetNuke.Modules.ActiveForums.Entities.ReplyInfo
{
Expand Down

0 comments on commit 8bab74c

Please sign in to comment.