Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/editor/ManiphestTransactionEditor.php
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | if ($unblock_xaction !== null) { | ||||
ManiphestTaskUnblockTransaction::TRANSACTIONTYPE) | ManiphestTaskUnblockTransaction::TRANSACTIONTYPE) | ||||
->setOldValue(array($object->getPHID() => $old)) | ->setOldValue(array($object->getPHID() => $old)) | ||||
->setNewValue(array($object->getPHID() => $new)); | ->setNewValue(array($object->getPHID() => $new)); | ||||
if ($this->getIsNewObject()) { | if ($this->getIsNewObject()) { | ||||
$parent_xaction->setMetadataValue('blocker.new', true); | $parent_xaction->setMetadataValue('blocker.new', true); | ||||
} | } | ||||
id(new ManiphestTransactionEditor()) | $this->newSubEditor() | ||||
->setActor($this->getActor()) | |||||
->setActingAsPHID($this->getActingAsPHID()) | |||||
->setContentSource($this->getContentSource()) | |||||
->setContinueOnNoEffect(true) | ->setContinueOnNoEffect(true) | ||||
->setContinueOnMissingFields(true) | ->setContinueOnMissingFields(true) | ||||
->applyTransactions($blocked_task, array($parent_xaction)); | ->applyTransactions($blocked_task, array($parent_xaction)); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
return $xactions; | return $xactions; | ||||
▲ Show 20 Lines • Show All 707 Lines • Show Last 20 Lines |