From a39f5e11139ae5631eb990fd2d5ed528724ae00e Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 29 Sep 2017 14:48:38 -0700 Subject: [PATCH] Correct bad context path when doing pattern search inside a repository Summary: Ref PHI101. It looks like this was maybe copy/pasted by mistake in recent design refactoring. We need to pass the full path, not the `basename()` of the path, to the search form. Test Plan: Searched inside `scripts/test/`, found results inside `scripts/test/`. Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D18664 --- .../diffusion/controller/DiffusionBrowseController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/applications/diffusion/controller/DiffusionBrowseController.php b/src/applications/diffusion/controller/DiffusionBrowseController.php index d3223e64fd..b4c0352d53 100644 --- a/src/applications/diffusion/controller/DiffusionBrowseController.php +++ b/src/applications/diffusion/controller/DiffusionBrowseController.php @@ -1557,7 +1557,8 @@ final class DiffusionBrowseController extends DiffusionController { $commit_tag = $this->renderCommitHashTag($drequest); - $path = nonempty(basename($drequest->getPath()), '/'); + $path = nonempty($drequest->getPath(), '/'); + $search = $this->renderSearchForm($path); $header = id(new PHUIHeaderView())