mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 13:30:55 +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:
parent
eeef60a678
commit
149c1a6de7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue