diff --git a/src/applications/conpherence/controller/ConpherenceUpdateController.php b/src/applications/conpherence/controller/ConpherenceUpdateController.php --- a/src/applications/conpherence/controller/ConpherenceUpdateController.php +++ b/src/applications/conpherence/controller/ConpherenceUpdateController.php @@ -79,6 +79,29 @@ $user, $conpherence, $message); + + $text_metadata = $request->getStr('text_metadata'); + if ($text_metadata) { + $text_metadata = phutil_json_decode($text_metadata); + if ( + isset($text_metadata['attachedFilePHIDs']) && + is_array($text_metadata['attachedFilePHIDs']) + ) { + $attached_file_phids = idx($text_metadata, + 'attachedFilePHIDs', + array()); + if ($attached_file_phids) { + $metadata_object = array( + 'remarkup.control' => array( + 'attachedFilePHIDs' => $attached_file_phids, + ), + ); + + $xactions[0]->setMetadata($metadata_object); + } + } + } + $delete_draft = true; } else { $action = ConpherenceUpdateActions::LOAD;