diff --git a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldTokenizer.php b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldTokenizer.php index d0e4e8d6ee..d2b063ffde 100644 --- a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldTokenizer.php +++ b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldTokenizer.php @@ -1,67 +1,68 @@ getFieldValue(); $control = id(new AphrontFormTokenizerControl()) ->setUser($this->getViewer()) ->setLabel($this->getFieldName()) ->setName($this->getFieldKey()) ->setDatasource($this->getDatasource()) ->setCaption($this->getCaption()) + ->setError($this->getFieldError()) ->setValue(nonempty($value, array())); $limit = $this->getFieldConfigValue('limit'); if ($limit) { $control->setLimit($limit); } return $control; } public function appendToApplicationSearchForm( PhabricatorApplicationSearchEngine $engine, AphrontFormView $form, $value) { $control = id(new AphrontFormTokenizerControl()) ->setLabel($this->getFieldName()) ->setName($this->getFieldKey()) ->setDatasource($this->getDatasource()) ->setValue(nonempty($value, array())); $form->appendControl($control); } public function getHeraldFieldValueType($condition) { return id(new HeraldTokenizerFieldValue()) ->setKey('custom.'.$this->getFieldKey()) ->setDatasource($this->getDatasource()); } public function getHeraldFieldStandardType() { return HeraldField::STANDARD_PHID_LIST; } public function getHeraldDatasource() { return $this->getDatasource(); } protected function getHTTPParameterType() { return new AphrontPHIDListHTTPParameterType(); } protected function newConduitSearchParameterType() { return new ConduitPHIDListParameterType(); } protected function newConduitEditParameterType() { return new ConduitPHIDListParameterType(); } }