diff --git a/src/view/form/control/AphrontFormTokenizerControl.php b/src/view/form/control/AphrontFormTokenizerControl.php index 89d4465224..3d82c2881b 100644 --- a/src/view/form/control/AphrontFormTokenizerControl.php +++ b/src/view/form/control/AphrontFormTokenizerControl.php @@ -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, )); }