mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
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:
parent
afb0f7c7af
commit
abf37aa979
1 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue