From 07f1a03262d5ae3bac0b0a2bbe7f54d9167bba4c Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 8 Feb 2016 10:27:00 -0800 Subject: [PATCH] Fix a bad call when prefilling ApplicationSearch from `?projects=some_slug` Summary: Fixes T10299. Test Plan: - Visited `/maniphest/?projects=x` locally, where `x` is some valid project slug. - Before patch: Fatal on `requireViewer()` call. - After patch: Works correctly, filling the correct project into parameters. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10299 Differential Revision: https://secure.phabricator.com/D15214 --- .../project/searchfield/PhabricatorProjectSearchField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/project/searchfield/PhabricatorProjectSearchField.php b/src/applications/project/searchfield/PhabricatorProjectSearchField.php index f187444e5d..8b81cb9d15 100644 --- a/src/applications/project/searchfield/PhabricatorProjectSearchField.php +++ b/src/applications/project/searchfield/PhabricatorProjectSearchField.php @@ -34,7 +34,7 @@ final class PhabricatorProjectSearchField if ($slugs) { $projects = id(new PhabricatorProjectQuery()) - ->setViewer($this->requireViewer()) + ->setViewer($this->getViewer()) ->withSlugs($slugs) ->execute(); foreach ($projects as $project) { -- 2.51.2