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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user