Differential D11116 Diff 26807 src/applications/transactions/editor/PhabricatorApplicationTransactionCommentEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editor/PhabricatorApplicationTransactionCommentEditor.php
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | public function applyEdit( | ||||
$xaction->saveTransaction(); | $xaction->saveTransaction(); | ||||
// Add links to any files newly referenced by the edit. | // Add links to any files newly referenced by the edit. | ||||
if ($file_phids) { | if ($file_phids) { | ||||
$editor = new PhabricatorEdgeEditor(); | $editor = new PhabricatorEdgeEditor(); | ||||
foreach ($file_phids as $file_phid) { | foreach ($file_phids as $file_phid) { | ||||
$editor->addEdge( | $editor->addEdge( | ||||
$xaction->getObjectPHID(), | $xaction->getObjectPHID(), | ||||
PhabricatorEdgeConfig::TYPE_OBJECT_HAS_FILE, | PhabricatorObjectHasFileEdgeType::EDGECONST , | ||||
$file_phid); | $file_phid); | ||||
} | } | ||||
$editor->save(); | $editor->save(); | ||||
} | } | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |