Fix validation of network names in Almanac
Summary: Ref T5833. This was using the wrong constant, so we weren't validating property. Test Plan: Tried to create a nameless network and correctly got an error. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T5833 Differential Revision: https://secure.phabricator.com/D11447
This commit is contained in:
@@ -82,7 +82,7 @@ final class AlmanacNetworkEditor
|
||||
$errors = parent::validateTransaction($object, $type, $xactions);
|
||||
|
||||
switch ($type) {
|
||||
case AlmanacServiceTransaction::TYPE_NAME:
|
||||
case AlmanacNetworkTransaction::TYPE_NAME:
|
||||
$missing = $this->validateIsEmptyTextField(
|
||||
$object->getName(),
|
||||
$xactions);
|
||||
|
||||
Reference in New Issue
Block a user