YAFLogo

johans
  • johans
  • 51.8% (Neutral)
  • YAF Lover Topic Starter
11 years ago
Found a bug. LegacyDb.message_getRepliesList() is missing column DeleteReason.

Just make a thread with at least 3 messages. Delete two of them. Then undelete the first one.

Deletemessage.asxc.cs Page_Load() loads a preview of the other messages in the thread using:

DataTable tempdb = LegacyDb.message_getRepliesList(this.Get<HttpRequestBase>().QueryString.GetFirstOrDefault("m"));

That tempdb is loaded into a MessagePostData object which in RenderMessage() checks for

var deleteText =
                    !string.IsNullOrEmpty(
                        this.Get<HttpContextBase>().Server.HtmlDecode(Convert.ToString(this.DataRow["DeleteReason"])))
                        ? this.Get<IFormatMessage>().RepairHtml((string)this.DataRow["DeleteReason"], true)
                        : this.GetText("EDIT_REASON_NA");
Sponsor