Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14370252
D17013.id40932.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17013.id40932.diff
View Options
diff --git a/src/applications/project/typeahead/PhabricatorProjectDatasource.php b/src/applications/project/typeahead/PhabricatorProjectDatasource.php
--- a/src/applications/project/typeahead/PhabricatorProjectDatasource.php
+++ b/src/applications/project/typeahead/PhabricatorProjectDatasource.php
@@ -102,10 +102,21 @@
}
$all_strings = array();
- $all_strings[] = $proj->getDisplayName();
+
+ // NOTE: We list the project's name first because results will be
+ // sorted into prefix vs content phases incorrectly if we don't: it
+ // will look like "Parent (Milestone)" matched "Parent" as a prefix,
+ // but it did not.
+ $all_strings[] = $proj->getName();
+
+ if ($proj->isMilestone()) {
+ $all_strings[] = $proj->getParentProject()->getName();
+ }
+
foreach ($proj->getSlugs() as $project_slug) {
$all_strings[] = $project_slug->getSlug();
}
+
$all_strings = implode("\n", $all_strings);
$proj_result = id(new PhabricatorTypeaheadResult())
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 5:46 PM (19 h, 25 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6914996
Default Alt Text
D17013.id40932.diff (1 KB)
Attached To
Mode
D17013: Fix an issue where tokenizers can sort milestone results into the wrong query phase
Attached
Detach File
Event Timeline
Log In to Comment