1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00

(stable) Fix Passphrase Credential dialog

Summary: Fixes T10772, not sure why this fails, but reverting the code back to old dialog call works.

Test Plan:
  - Try to add a new credential when importing a repository.
  - Also created a new credential normally, via Passphrase.
  - Also edited a credential.

Reviewers: chad

Reviewed By: chad

Subscribers: Korvin

Maniphest Tasks: T10772

Differential Revision: https://secure.phabricator.com/D15691
This commit is contained in:
Chad Little 2016-04-12 19:25:00 -07:00 committed by epriestley
parent 5ddaf52898
commit ab63b1b2ae

View file

@ -21,6 +21,7 @@ final class PassphraseCredentialEditController extends PassphraseController {
}
$type = $this->getCredentialType($credential->getCredentialType());
$type_const = $type->getCredentialType();
$is_new = false;
} else {
@ -228,6 +229,7 @@ final class PassphraseCredentialEditController extends PassphraseController {
$form = id(new AphrontFormView())
->setUser($viewer)
->addHiddenInput('isInitialized', true)
->addHiddenInput('type', $type_const)
->appendChild(
id(new AphrontFormTextControl())
->setName('name')