From 11fd4c60f20f31184bcf1ad69c05bc9056b3d810 Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Tue, 10 Sep 2013 14:39:40 -0700 Subject: [PATCH] Phortune - fix fatal from initial load Summary: the attachX upgrade means we need to blank this out formally when creating a new object. Fixes https://github.com/facebook/phabricator/issues/383 Test Plan: loaded phortune for the first time - no fatal and it worked! Reviewers: epriestley Reviewed By: epriestley CC: Korvin, aran Differential Revision: https://secure.phabricator.com/D6939 --- src/applications/phortune/controller/PhortuneController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/applications/phortune/controller/PhortuneController.php b/src/applications/phortune/controller/PhortuneController.php index c11ddb3326..93bb99a1fe 100644 --- a/src/applications/phortune/controller/PhortuneController.php +++ b/src/applications/phortune/controller/PhortuneController.php @@ -35,7 +35,8 @@ abstract class PhortuneController extends PhabricatorController { '=' => array($user->getPHID() => $user->getPHID()), )); - $account = new PhortuneAccount(); + $account = id(new PhortuneAccount()) + ->attachMemberPHIDs(array()); $editor = id(new PhortuneAccountEditor()) ->setActor($user)