mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 13:30:25 +02:00
Fix bug #38395 - Loading draft removes recipients when replying to PM
Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9685 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -818,7 +818,7 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_a
|
||||
/**
|
||||
* Load Drafts
|
||||
*/
|
||||
function load_drafts($topic_id = 0, $forum_id = 0, $id = 0)
|
||||
function load_drafts($topic_id = 0, $forum_id = 0, $id = 0, $pm_action = '', $msg_id = 0)
|
||||
{
|
||||
global $user, $db, $template, $auth;
|
||||
global $phpbb_root_path, $phpEx;
|
||||
@@ -911,7 +911,7 @@ function load_drafts($topic_id = 0, $forum_id = 0, $id = 0)
|
||||
{
|
||||
// Either display as PM draft if forum_id and topic_id are empty or if access to the forums has been denied afterwards...
|
||||
$link_pm = true;
|
||||
$insert_url = append_sid("{$phpbb_root_path}ucp.$phpEx", "i=$id&mode=compose&d={$draft['draft_id']}");
|
||||
$insert_url = append_sid("{$phpbb_root_path}ucp.$phpEx", "i=$id&mode=compose&d={$draft['draft_id']}" . (($pm_action) ? "&action=$pm_action" : '') . (($msg_id) ? "&p=$msg_id" : ''));
|
||||
}
|
||||
|
||||
$template->assign_block_vars('draftrow', array(
|
||||
|
Reference in New Issue
Block a user