From 07fdcde87eafb63ae11d3d6a83086c709be84274 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 25 Mar 2014 14:02:18 -0700 Subject: [PATCH] Provide viewer to CustomFields in ApplicationSearch Summary: Fixes T4663. Test Plan: Added a custom field which accesses the viewer's username. {F133249} Reviewers: carl, btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T4663 Differential Revision: https://secure.phabricator.com/D8595 --- .../search/engine/PhabricatorApplicationSearchEngine.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php index eb92b70f2b..481d5c7737 100644 --- a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php +++ b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php @@ -511,6 +511,7 @@ abstract class PhabricatorApplicationSearchEngine { $fields = PhabricatorCustomField::getObjectFields( $object, PhabricatorCustomField::ROLE_APPLICATIONSEARCH); + $fields->setViewer($this->requireViewer()); } else { $fields = null; } -- 2.51.2