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:
parent
847ff549ce
commit
20dbdd7c28
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue