1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 16:30:59 +01:00

Fix bug with macros search being global.

Summary: This fixed a bug with macros search finding macros flagged by any user. We should only look at flags by the current user.

Test Plan: Verify that no macros flagged by another user show up in macros search.

Reviewers: epriestley

Reviewed By: epriestley

CC: Korvin, aran

Differential Revision: https://secure.phabricator.com/D6717
This commit is contained in:
Tarmo Lehtpuu 2013-08-11 13:35:15 -07:00 committed by epriestley
parent 4657158e71
commit 52225f7eb9

View file

@ -170,6 +170,7 @@ final class PhabricatorMacroQuery
if ($this->flagColor != '-1' && $this->flagColor !== null) {
$flags = id(new PhabricatorFlagQuery())
->withOwnerPHIDs(array($this->getViewer()->getPHID()))
->withTypes(array(PhabricatorMacroPHIDTypeMacro::TYPECONST))
->withColor($this->flagColor)
->setViewer($this->getViewer())