mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-25 06:50:55 +01:00
Preserve "Space" UI control value when editing Passphrase credentials
Summary: Fixes T9568. We just weren't setting this properly so it would default away from the proper value. Test Plan: - Edited a credential in a non-default space, edit form populated properly. - Changed "Space", introduced an error, saved form, got error with sticky value for "Space" properly. - Saved form with new space value. - Created a new credential. Reviewers: chad Reviewed By: chad Subscribers: revi Maniphest Tasks: T9568 Differential Revision: https://secure.phabricator.com/D14278
This commit is contained in:
parent
ac7edf54af
commit
3a91e64897
1 changed files with 1 additions and 0 deletions
|
@ -249,6 +249,7 @@ final class PassphraseCredentialEditController extends PassphraseController {
|
||||||
id(new AphrontFormPolicyControl())
|
id(new AphrontFormPolicyControl())
|
||||||
->setName('viewPolicy')
|
->setName('viewPolicy')
|
||||||
->setPolicyObject($credential)
|
->setPolicyObject($credential)
|
||||||
|
->setSpacePHID($v_space)
|
||||||
->setCapability(PhabricatorPolicyCapability::CAN_VIEW)
|
->setCapability(PhabricatorPolicyCapability::CAN_VIEW)
|
||||||
->setPolicies($policies))
|
->setPolicies($policies))
|
||||||
->appendControl(
|
->appendControl(
|
||||||
|
|
Loading…
Reference in a new issue