From e3f89279f9126e09f23b1d9d7d0488751830aa83 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 22 Mar 2016 18:51:39 -0700 Subject: [PATCH] Attach credential impelementations when initializing new credentials Summary: Fixes T10651. Test Plan: Created a new API token credential. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10651 Differential Revision: https://secure.phabricator.com/D15512 --- .../controller/PassphraseCredentialEditController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/applications/passphrase/controller/PassphraseCredentialEditController.php b/src/applications/passphrase/controller/PassphraseCredentialEditController.php index a749e82af3..72c21a9e39 100644 --- a/src/applications/passphrase/controller/PassphraseCredentialEditController.php +++ b/src/applications/passphrase/controller/PassphraseCredentialEditController.php @@ -36,7 +36,8 @@ final class PassphraseCredentialEditController extends PassphraseController { $credential = PassphraseCredential::initializeNewCredential($viewer) ->setCredentialType($type->getCredentialType()) - ->setProvidesType($type->getProvidesType()); + ->setProvidesType($type->getProvidesType()) + ->attachImplementation($type); $is_new = true;