mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 17:52:43 +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 = $this->getCredentialType($credential->getCredentialType());
|
||||||
|
$type_const = $type->getCredentialType();
|
||||||
|
|
||||||
$is_new = false;
|
$is_new = false;
|
||||||
} else {
|
} else {
|
||||||
|
@ -228,6 +229,7 @@ final class PassphraseCredentialEditController extends PassphraseController {
|
||||||
$form = id(new AphrontFormView())
|
$form = id(new AphrontFormView())
|
||||||
->setUser($viewer)
|
->setUser($viewer)
|
||||||
->addHiddenInput('isInitialized', true)
|
->addHiddenInput('isInitialized', true)
|
||||||
|
->addHiddenInput('type', $type_const)
|
||||||
->appendChild(
|
->appendChild(
|
||||||
id(new AphrontFormTextControl())
|
id(new AphrontFormTextControl())
|
||||||
->setName('name')
|
->setName('name')
|
||||||
|
|
Loading…
Reference in a new issue