1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 04:20:55 +01:00

Fix an issue with AuthProviderConfig handles

Summary: Fixes T11156. These were never correct, but also never actually used until I made timelines load object handles unconditionally in D16111.

Test Plan: Viewed an auth provider with transactions, no more fatal.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11156

Differential Revision: https://secure.phabricator.com/D16128
This commit is contained in:
epriestley 2016-06-16 03:44:34 -07:00
parent 4e14b3f3a5
commit f9e3108938

View file

@ -30,10 +30,12 @@ final class PhabricatorAuthAuthProviderPHIDType extends PhabricatorPHIDType {
array $objects) {
foreach ($handles as $phid => $handle) {
$provider = $objects[$phid];
$provider = $objects[$phid]->getProvider();
if ($provider) {
$handle->setName($provider->getProviderName());
}
}
}
}