Skip to content

Commit 980da07

Browse files
committed
Editing a news item updates forum thread title as well
1 parent fe60ff5 commit 980da07

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Zero-K.info/Controllers/NewsController.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ public ActionResult PostNews(News nn, HttpPostedFileBase image)
8383
db.SaveChanges();
8484
news.ForumThreadID = thread.ForumThreadID;
8585
db.News.InsertOnSubmit(news);
86+
}
87+
else
88+
{
89+
nn.ForumThread.Title = nn.Title;
8690
}
8791
db.SaveChanges();
8892

0 commit comments

Comments
 (0)