1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Correctly initialize new PhortuneAccount automatically

Summary: There is currently a validation error triggered if you initialize a new account without a member set. I think this is the correct fix, but let me know.

Test Plan: truncate phortune_account database, navigate to phortune, see account automatically created to "Default Account".

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D17657
This commit is contained in:
Chad Little 2017-04-11 22:46:40 +00:00 committed by chad
parent eeef60a678
commit 149c1a6de7

View file

@ -17,7 +17,7 @@ final class PhortuneAccount extends PhortuneDAO
public static function initializeNewAccount(PhabricatorUser $actor) {
$account = id(new PhortuneAccount());
$account->memberPHIDs = array();
$account->memberPHIDs = array($actor->getPHID() => $actor->getPHID());
return $account;
}