diff --git a/src/applications/transactions/bulk/type/BulkSelectParameterType.php b/src/applications/transactions/bulk/type/BulkSelectParameterType.php index d1cfc5125b..2f0ba863ef 100644 --- a/src/applications/transactions/bulk/type/BulkSelectParameterType.php +++ b/src/applications/transactions/bulk/type/BulkSelectParameterType.php @@ -3,8 +3,15 @@ final class BulkSelectParameterType extends BulkParameterType { + private $options; + + public function setOptions(array $options) { + $this->options = $options; + return $this; + } + public function getOptions() { - return $this->getField()->getOptions(); + return $this->options; } public function getPHUIXControlType() { diff --git a/src/applications/transactions/editfield/PhabricatorSelectEditField.php b/src/applications/transactions/editfield/PhabricatorSelectEditField.php index aacd67f5a8..7e98d84b2f 100644 --- a/src/applications/transactions/editfield/PhabricatorSelectEditField.php +++ b/src/applications/transactions/editfield/PhabricatorSelectEditField.php @@ -55,7 +55,8 @@ final class PhabricatorSelectEditField } protected function newBulkParameterType() { - return new BulkSelectParameterType(); + return id(new BulkSelectParameterType()) + ->setOptions($this->getOptions()); } private function getCanonicalValue($value) { diff --git a/src/applications/transactions/engineextension/PhabricatorSubtypeEditEngineExtension.php b/src/applications/transactions/engineextension/PhabricatorSubtypeEditEngineExtension.php index a47a4d1b55..260c0d2acf 100644 --- a/src/applications/transactions/engineextension/PhabricatorSubtypeEditEngineExtension.php +++ b/src/applications/transactions/engineextension/PhabricatorSubtypeEditEngineExtension.php @@ -30,6 +30,9 @@ final class PhabricatorSubtypeEditEngineExtension $subtype_type = PhabricatorTransactions::TYPE_SUBTYPE; + $map = $object->newEditEngineSubtypeMap(); + $options = mpull($map, 'getName'); + $subtype_field = id(new PhabricatorSelectEditField()) ->setKey(self::EDITKEY) ->setLabel(pht('Subtype')) @@ -41,7 +44,8 @@ final class PhabricatorSubtypeEditEngineExtension ->setTransactionType($subtype_type) ->setConduitDescription(pht('Change the object subtype.')) ->setConduitTypeDescription(pht('New object subtype key.')) - ->setValue($object->getEditEngineSubtype()); + ->setValue($object->getEditEngineSubtype()) + ->setOptions($options); return array( $subtype_field,