Differential D14669 Diff 35492 src/applications/transactions/editfield/PhabricatorPHIDListEditField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editfield/PhabricatorPHIDListEditField.php
| Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | public function getValueForTransaction() { | ||||
| return $value; | return $value; | ||||
| } | } | ||||
| protected function newEditType() { | protected function newEditType() { | ||||
| if ($this->getUseEdgeTransactions()) { | if ($this->getUseEdgeTransactions()) { | ||||
| return new PhabricatorEdgeEditType(); | return new PhabricatorEdgeEditType(); | ||||
| } | } | ||||
| $type = parent::newEditType(); | $type = new PhabricatorDatasourceEditType(); | ||||
| $type->setIsSingleValue($this->getIsSingleValue()); | |||||
| if ($this->getIsSingleValue()) { | |||||
| $type->setValueType('phid'); | |||||
| } | |||||
| return $type; | return $type; | ||||
| } | } | ||||
| public function getConduitEditTypes() { | public function getConduitEditTypes() { | ||||
| if (!$this->getUseEdgeTransactions()) { | if (!$this->getUseEdgeTransactions()) { | ||||
| return parent::getConduitEditTypes(); | return parent::getConduitEditTypes(); | ||||
| } | } | ||||
| Show All 36 Lines | |||||