diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 2a640bb046..3fa941787d 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -24,7 +24,7 @@ // // Simple version of jumpbox, just lists authed forums // -function make_forum_select($box_name, $ignore_forum = false) +function make_forum_select($box_name, $ignore_forum = false, $select_forum = '') { global $db, $userdata; @@ -43,7 +43,8 @@ function make_forum_select($box_name, $ignore_forum = false) { if ( $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] ) { - $forum_list .= ''; + $selected = ( $select_forum == $row['forum_id'] ) ? ' selected="selected"' : ''; + $forum_list .= ''; } } diff --git a/phpBB/modcp.php b/phpBB/modcp.php index a773296476..4c7ea95c42 100644 --- a/phpBB/modcp.php +++ b/phpBB/modcp.php @@ -737,7 +737,7 @@ switch( $mode ) 'S_SPLIT_ACTION' => append_sid("modcp.$phpEx"), 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_FORUM_SELECT' => make_forum_select("new_forum_id")) + 'S_FORUM_SELECT' => make_forum_select("new_forum_id", false, $forum_id)) ); for($i = 0; $i < $total_posts; $i++)