From b0d976f4621fb6add8130799b9de3ba3581fe558 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 31 Jul 2023 21:45:59 +0200 Subject: [PATCH] [ticket/13364] Force sync forum after splitting topic PHPBB3-13364 --- phpBB/includes/mcp/mcp_topic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php index 439c2fdeb9..953ec95af1 100644 --- a/phpBB/includes/mcp/mcp_topic.php +++ b/phpBB/includes/mcp/mcp_topic.php @@ -732,6 +732,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject) // Update forum statistics $config->increment('num_topics', 1, false); + sync('forum', 'forum_id', [$to_forum_id], true, true); // Link back to both topics $return_link = sprintf($user->lang['RETURN_TOPIC'], '', '') . '

' . sprintf($user->lang['RETURN_NEW_TOPIC'], '', '');