diff --git a/src/applications/passphrase/controller/PassphraseCredentialEditController.php b/src/applications/passphrase/controller/PassphraseCredentialEditController.php --- a/src/applications/passphrase/controller/PassphraseCredentialEditController.php +++ b/src/applications/passphrase/controller/PassphraseCredentialEditController.php @@ -21,6 +21,7 @@ } $type = $this->getCredentialType($credential->getCredentialType()); + $type_const = $type->getCredentialType(); $is_new = false; } else { @@ -228,6 +229,7 @@ $form = id(new AphrontFormView()) ->setUser($viewer) ->addHiddenInput('isInitialized', true) + ->addHiddenInput('type', $type_const) ->appendChild( id(new AphrontFormTextControl()) ->setName('name')