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
Wed, May 15, 11:39 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6283951
Default Alt Text
D20204.diff (1 KB)

Event Timeline