Differential D15914 Diff 38330 src/applications/differential/customfield/DifferentialReviewersField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialReviewersField.php
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | public function renderEditControl(array $handles) { | ||||
$phids = array(); | $phids = array(); | ||||
if ($this->getValue()) { | if ($this->getValue()) { | ||||
$phids = mpull($this->getValue(), 'getReviewerPHID'); | $phids = mpull($this->getValue(), 'getReviewerPHID'); | ||||
} | } | ||||
return id(new AphrontFormTokenizerControl()) | return id(new AphrontFormTokenizerControl()) | ||||
->setUser($this->getViewer()) | ->setUser($this->getViewer()) | ||||
->setName($this->getFieldKey()) | ->setName($this->getFieldKey()) | ||||
->setDatasource(new PhabricatorProjectOrUserDatasource()) | ->setDatasource(new DiffusionAuditorDatasource()) | ||||
->setValue($phids) | ->setValue($phids) | ||||
->setError($this->getFieldError()) | ->setError($this->getFieldError()) | ||||
->setLabel($this->getFieldName()); | ->setLabel($this->getFieldName()); | ||||
} | } | ||||
public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
return PhabricatorTransactions::TYPE_EDGE; | return PhabricatorTransactions::TYPE_EDGE; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |