Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/editor/PhabricatorAuditCommentEditor.php
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | if ($ccs) { | ||||
array('Added by '.$actor->getUsername())) | array('Added by '.$actor->getUsername())) | ||||
->save(); | ->save(); | ||||
} | } | ||||
} | } | ||||
$commit->updateAuditStatus($requests); | $commit->updateAuditStatus($requests); | ||||
$commit->save(); | $commit->save(); | ||||
$content_source = PhabricatorContentSource::newForSource( | |||||
PhabricatorContentSource::SOURCE_LEGACY, | |||||
array()); | |||||
foreach ($comments as $comment) { | foreach ($comments as $comment) { | ||||
$comment | $comment | ||||
->setActorPHID($actor->getPHID()) | ->setActorPHID($actor->getPHID()) | ||||
->setTargetPHID($commit->getPHID()) | ->setTargetPHID($commit->getPHID()) | ||||
->setContentSource($content_source) | |||||
->save(); | ->save(); | ||||
} | } | ||||
foreach ($inline_comments as $inline) { | foreach ($inline_comments as $inline) { | ||||
$xaction = id(new PhabricatorAuditComment()) | $xaction = id(new PhabricatorAuditComment()) | ||||
->setProxyComment($inline->getTransactionCommentForSave()) | |||||
->setAction(PhabricatorAuditActionConstants::INLINE) | ->setAction(PhabricatorAuditActionConstants::INLINE) | ||||
->setActorPHID($actor->getPHID()) | ->setActorPHID($actor->getPHID()) | ||||
->setTargetPHID($commit->getPHID()) | ->setTargetPHID($commit->getPHID()) | ||||
->setContentSource($content_source) | |||||
->save(); | ->save(); | ||||
$inline->setAuditCommentID($xaction->getID()); | |||||
$inline->save(); | |||||
$comments[] = $xaction; | $comments[] = $xaction; | ||||
} | } | ||||
$feed_dont_publish_phids = array(); | $feed_dont_publish_phids = array(); | ||||
foreach ($requests as $request) { | foreach ($requests as $request) { | ||||
$status = $request->getAuditStatus(); | $status = $request->getAuditStatus(); | ||||
switch ($status) { | switch ($status) { | ||||
case PhabricatorAuditStatusConstants::RESIGNED: | case PhabricatorAuditStatusConstants::RESIGNED: | ||||
▲ Show 20 Lines • Show All 300 Lines • Show Last 20 Lines |