Differential D17054 Diff 41023 src/infrastructure/customfield/editor/PhabricatorCustomFieldEditField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/editor/PhabricatorCustomFieldEditField.php
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | protected function buildControl() { | ||||
| $value = $this->getValue(); | $value = $this->getValue(); | ||||
| $clone->setValueFromApplicationTransactions($value); | $clone->setValueFromApplicationTransactions($value); | ||||
| return $clone->renderEditControl(array()); | return $clone->renderEditControl(array()); | ||||
| } | } | ||||
| protected function newEditType() { | protected function newEditType() { | ||||
| $type = id(new PhabricatorCustomFieldEditType()) | |||||
| ->setCustomField($this->getCustomField()); | |||||
| $conduit_type = $this->newConduitParameterType(); | $conduit_type = $this->newConduitParameterType(); | ||||
| if (!$conduit_type) { | if ($conduit_type) { | ||||
| return null; | $type->setConduitParameterType($conduit_type); | ||||
| } | } | ||||
| $type = id(new PhabricatorCustomFieldEditType()) | |||||
| ->setCustomField($this->getCustomField()) | |||||
| ->setConduitParameterType($conduit_type); | |||||
| return $type; | return $type; | ||||
| } | } | ||||
| public function getValueForTransaction() { | public function getValueForTransaction() { | ||||
| $value = $this->getValue(); | $value = $this->getValue(); | ||||
| $field = $this->getCustomField(); | $field = $this->getCustomField(); | ||||
| // Avoid changing the value of the field itself, since later calls would | // Avoid changing the value of the field itself, since later calls would | ||||
| ▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines | |||||