From 20dbdd7c28d6276cf37eada0fa4096e9e55ca2db Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 20 Jan 2015 14:14:30 -0800 Subject: [PATCH] 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 --- src/applications/almanac/editor/AlmanacNetworkEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/almanac/editor/AlmanacNetworkEditor.php b/src/applications/almanac/editor/AlmanacNetworkEditor.php index 779a0c7bda..81f0e63d46 100644 --- a/src/applications/almanac/editor/AlmanacNetworkEditor.php +++ b/src/applications/almanac/editor/AlmanacNetworkEditor.php @@ -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);