Page MenuHomePhorge

D25709.1737736124.diff
No OneTemporary

D25709.1737736124.diff

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;

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 24, 16:28 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1140840
Default Alt Text
D25709.1737736124.diff (1 KB)

Event Timeline