Differential D14666 Diff 35490 src/applications/transactions/editfield/PhabricatorTokenizerEditField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editfield/PhabricatorTokenizerEditField.php
| Show All 19 Lines | protected function newControl() { | ||||
| $control = id(new AphrontFormTokenizerControl()) | $control = id(new AphrontFormTokenizerControl()) | ||||
| ->setDatasource($this->newDatasource()); | ->setDatasource($this->newDatasource()); | ||||
| $initial_value = $this->getInitialValue(); | $initial_value = $this->getInitialValue(); | ||||
| if ($initial_value !== null) { | if ($initial_value !== null) { | ||||
| $control->setOriginalValue($initial_value); | $control->setOriginalValue($initial_value); | ||||
| } | } | ||||
| if ($this->getIsSingleValue()) { | |||||
| $control->setLimit(1); | |||||
| } | |||||
| return $control; | return $control; | ||||
| } | } | ||||
| protected function getInitialValueFromSubmit(AphrontRequest $request, $key) { | protected function getInitialValueFromSubmit(AphrontRequest $request, $key) { | ||||
| return $request->getArr($key.'.original'); | return $request->getArr($key.'.original'); | ||||
| } | } | ||||
| protected function newEditType() { | protected function newEditType() { | ||||
| Show All 38 Lines | |||||