1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 04:20:55 +01:00

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:
epriestley 2015-01-20 14:14:30 -08:00
parent 847ff549ce
commit 20dbdd7c28

View file

@ -82,7 +82,7 @@ final class AlmanacNetworkEditor
$errors = parent::validateTransaction($object, $type, $xactions); $errors = parent::validateTransaction($object, $type, $xactions);
switch ($type) { switch ($type) {
case AlmanacServiceTransaction::TYPE_NAME: case AlmanacNetworkTransaction::TYPE_NAME:
$missing = $this->validateIsEmptyTextField( $missing = $this->validateIsEmptyTextField(
$object->getName(), $object->getName(),
$xactions); $xactions);