From 52225f7eb987be3d95114ff5e75038f2cefddad4 Mon Sep 17 00:00:00 2001 From: Tarmo Lehtpuu Date: Sun, 11 Aug 2013 13:35:15 -0700 Subject: [PATCH] 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 --- src/applications/macro/query/PhabricatorMacroQuery.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/macro/query/PhabricatorMacroQuery.php b/src/applications/macro/query/PhabricatorMacroQuery.php index da8f7d9a13..4f20ddbcc8 100644 --- a/src/applications/macro/query/PhabricatorMacroQuery.php +++ b/src/applications/macro/query/PhabricatorMacroQuery.php @@ -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())