mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +01:00
Fix tokenizer placeholder issue
Summary: The placeholder property remains null despite it is set to a custom value. Test Plan: Use a custom placeholder in `AphrontFormTokenizerControl` ``` id(new AphrontFormTokenizerControl()) ->setPlaceholder('My custom placeholder...') ->setDatasource('/typeahead/common/projects/'); ``` The placeholder should be set to "My custom placeholder..." Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4297
This commit is contained in:
parent
dbae9452f9
commit
250fe7fb77
1 changed files with 2 additions and 3 deletions
|
@ -41,9 +41,8 @@ final class AphrontFormTokenizerControl extends AphrontFormControl {
|
|||
$id = celerity_generate_unique_node_id();
|
||||
}
|
||||
|
||||
$placeholder = null;
|
||||
if (!$this->placeholder) {
|
||||
$placeholder = $this->getDefaultPlaceholder();
|
||||
$this->placeholder = $this->getDefaultPlaceholder();
|
||||
}
|
||||
|
||||
$template = new AphrontTokenizerTemplateView();
|
||||
|
@ -64,7 +63,7 @@ final class AphrontFormTokenizerControl extends AphrontFormControl {
|
|||
'limit' => $this->limit,
|
||||
'ondemand' => PhabricatorEnv::getEnvConfig('tokenizer.ondemand'),
|
||||
'username' => $username,
|
||||
'placeholder' => $placeholder,
|
||||
'placeholder' => $this->placeholder,
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue