mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 08:12:40 +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:
parent
5ddaf52898
commit
ab63b1b2ae
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