mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
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
This commit is contained in:
parent
a3a6c4ed2e
commit
a39f5e1113
1 changed files with 2 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue