<?php

final class PhabricatorStringListEditField
  extends PhabricatorEditField {

  protected function newControl() {
    return new AphrontFormTextControl();
  }

  protected function newConduitParameterType() {
    return new ConduitStringListParameterType();
  }

  protected function newHTTPParameterType() {
    return new AphrontStringListHTTPParameterType();
  }

}

<?php

final class PhabricatorStringListEditField
  extends PhabricatorEditField {

  protected function newControl() {
    return new AphrontFormTextControl();
  }

  protected function getValueForControl() {
    $value = $this->getValue();
    return implode(', ', $value);
  }

  protected function newConduitParameterType() {
    return new ConduitStringListParameterType();
  }

  protected function newHTTPParameterType() {
    return new AphrontStringListHTTPParameterType();
  }

}

Fix smushing of multiple values in Projects "Additional Hashtags" field
Fix smushing of multiple values in Projects "Additional Hashtags" field

Summary: Ref T10168. When we render this control, we currently don't put commas into the value correctly if there are multiple alternative hashtags.

Test Plan: Edited a project with multiple alternate hashtags. Before change: they all got smushed together. After change: properly comma-separated.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10168

Differential Revision: https://secure.phabricator.com/D15045
