diff --git a/src/applications/transactions/engineextension/PhabricatorSubtypeEditEngineExtension.php b/src/applications/transactions/engineextension/PhabricatorSubtypeEditEngineExtension.php index 260c0d2acf..338702478c 100644 --- a/src/applications/transactions/engineextension/PhabricatorSubtypeEditEngineExtension.php +++ b/src/applications/transactions/engineextension/PhabricatorSubtypeEditEngineExtension.php @@ -1,55 +1,60 @@ supportsSubtypes(); } public function buildCustomEditFields( PhabricatorEditEngine $engine, PhabricatorApplicationTransactionInterface $object) { $subtype_type = PhabricatorTransactions::TYPE_SUBTYPE; $map = $object->newEditEngineSubtypeMap(); $options = mpull($map, 'getName'); $subtype_field = id(new PhabricatorSelectEditField()) ->setKey(self::EDITKEY) ->setLabel(pht('Subtype')) ->setIsConduitOnly(true) ->setIsHidden(true) ->setIsReorderable(false) ->setIsDefaultable(false) ->setIsLockable(false) ->setTransactionType($subtype_type) ->setConduitDescription(pht('Change the object subtype.')) ->setConduitTypeDescription(pht('New object subtype key.')) ->setValue($object->getEditEngineSubtype()) ->setOptions($options); + // If subtypes are configured, enable changing them from the bulk editor. + if (count($map) > 1) { + $subtype_field->setBulkEditLabel(pht('Change subtype to')); + } + return array( $subtype_field, ); } }