mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-18 23:42:04 -05:00
fix: editing topic's forum not updating forum's last replied topic
This commit is contained in:
@@ -254,7 +254,7 @@ class TopicController extends Controller
|
||||
$latestPost = $lastRepliedTopic->latestPost;
|
||||
$latestPoster = $latestPost->user;
|
||||
|
||||
$newForum->update([
|
||||
$oldForum->update([
|
||||
'num_topic' => $oldForum->topics()->count(),
|
||||
'num_post' => $oldForum->posts()->count(),
|
||||
'last_topic_id' => $lastRepliedTopic->id,
|
||||
|
||||
Reference in New Issue
Block a user