1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-25 06:50:55 +01:00

Fix Differential flag view bug

Summary: See D3125#3

Test Plan:
Well, apparently the FB test Phabricator has no other flags
in it, so I modified the database by hand... the changed revision was
not marked as flagged in Differential.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T1557

Differential Revision: https://secure.phabricator.com/D3130
This commit is contained in:
Alan Huang 2012-08-01 19:03:17 -07:00
parent 88caa45854
commit d391177984

View file

@ -68,6 +68,7 @@ final class DifferentialRevisionListView extends AphrontView {
} }
$flags = id(new PhabricatorFlagQuery()) $flags = id(new PhabricatorFlagQuery())
->withOwnerPHIDs(array($user->getPHID()))
->withObjectPHIDs(mpull($this->revisions, 'getPHID')) ->withObjectPHIDs(mpull($this->revisions, 'getPHID'))
->execute(); ->execute();
$flagged = mpull($flags, null, 'getObjectPHID'); $flagged = mpull($flags, null, 'getObjectPHID');