1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 09:12:41 +01:00

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
This commit is contained in:
Bob Trahan 2013-09-10 14:39:40 -07:00
parent 93f735ed2f
commit 11fd4c60f2

View file

@ -35,7 +35,8 @@ abstract class PhortuneController extends PhabricatorController {
'=' => array($user->getPHID() => $user->getPHID()), '=' => array($user->getPHID() => $user->getPHID()),
)); ));
$account = new PhortuneAccount(); $account = id(new PhortuneAccount())
->attachMemberPHIDs(array());
$editor = id(new PhortuneAccountEditor()) $editor = id(new PhortuneAccountEditor())
->setActor($user) ->setActor($user)