Differential D8234 Diff 19594 src/applications/differential/field/specification/DifferentialCCsFieldSpecification.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/field/specification/DifferentialCCsFieldSpecification.php
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | final class DifferentialCCsFieldSpecification | ||||
} | } | ||||
public function renderEditControl() { | public function renderEditControl() { | ||||
$cc_map = array(); | $cc_map = array(); | ||||
foreach ($this->ccs as $phid) { | foreach ($this->ccs as $phid) { | ||||
$cc_map[] = $this->getHandle($phid); | $cc_map[] = $this->getHandle($phid); | ||||
} | } | ||||
return id(new AphrontFormTokenizerControl()) | return id(new AphrontFormTokenizerControl()) | ||||
->setUser(new PhabricatorUser()) | |||||
btrahan: uh? | |||||
->setLabel('CC') | ->setLabel('CC') | ||||
->setName('cc') | ->setName('cc') | ||||
->setUser($this->getUser()) | ->setUser($this->getUser()) | ||||
->setDatasource('/typeahead/common/mailable/') | ->setDatasource('/typeahead/common/mailable/') | ||||
->setValue($cc_map); | ->setValue($cc_map); | ||||
} | } | ||||
public function willWriteRevision(DifferentialRevisionEditor $editor) { | public function willWriteRevision(DifferentialRevisionEditor $editor) { | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |
uh?