From 149c1a6de75c2011cc45e2d0c9701f330dfe3340 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 11 Apr 2017 22:46:40 +0000 Subject: [PATCH] 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 --- src/applications/phortune/storage/PhortuneAccount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/phortune/storage/PhortuneAccount.php b/src/applications/phortune/storage/PhortuneAccount.php index 822673ea94..0560104972 100644 --- a/src/applications/phortune/storage/PhortuneAccount.php +++ b/src/applications/phortune/storage/PhortuneAccount.php @@ -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; }