Page MenuHomePhabricator

D20204.diff
No OneTemporary

D20204.diff

diff --git a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
--- a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
+++ b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
@@ -127,10 +127,20 @@
if (($offset + (2 * $limit)) < $hard_limit) {
$next_uri = id(new PhutilURI($request->getRequestURI()))
->replaceQueryParam('offset', $offset + $limit)
- ->replaceQueryParam('q', $query)
- ->replaceQueryParam('raw', $raw_query)
->replaceQueryParam('format', 'html');
+ if ($query !== null) {
+ $next_uri->replaceQueryParam('q', $query);
+ } else {
+ $next_uri->removeQueryParam('q');
+ }
+
+ if ($raw_query !== null) {
+ $next_uri->replaceQueryParam('raw', $raw_query);
+ } else {
+ $next_uri->removeQueryParam('raw');
+ }
+
$next_link = javelin_tag(
'a',
array(

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 4:56 PM (13 h, 45 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6775373
Default Alt Text
D20204.diff (1 KB)

Event Timeline