From eaa597a430089886c3e6082df00d58b70eec2142 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Wed, 5 Feb 2020 10:54:49 +0100 Subject: [PATCH] [ticket/10506] Preserve attachments on not-saving PM draft PHPBB3-10506 --- phpBB/includes/ucp/ucp_pm_compose.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index 2e1ad3fdcf..59bf1a31b4 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -706,8 +706,9 @@ function compose_pm($id, $mode, $action, $user_folders = array()) 'message' => $message, 'u' => $to_user_id, 'g' => $to_group_id, - 'p' => $msg_id) - ); + 'p' => $msg_id, + 'attachment_data' => $message_parser->attachment_data, + )); $s_hidden_fields .= build_address_field($address_list); confirm_box(false, 'SAVE_DRAFT', $s_hidden_fields);