Page MenuHomePhabricator

D20207.id48251.diff
No OneTemporary

D20207.id48251.diff

diff --git a/src/applications/maniphest/controller/ManiphestReportController.php b/src/applications/maniphest/controller/ManiphestReportController.php
--- a/src/applications/maniphest/controller/ManiphestReportController.php
+++ b/src/applications/maniphest/controller/ManiphestReportController.php
@@ -13,10 +13,19 @@
$project = head($request->getArr('set_project'));
$project = nonempty($project, null);
- $uri = $uri->alter('project', $project);
+
+ if ($project !== null) {
+ $uri->replaceQueryParam('project', $project);
+ } else {
+ $uri->removeQueryParam('project');
+ }
$window = $request->getStr('set_window');
- $uri = $uri->alter('window', $window);
+ if ($window !== null) {
+ $uri->replaceQueryParam('window', $window);
+ } else {
+ $uri->removeQueryParam('window');
+ }
return id(new AphrontRedirectResponse())->setURI($uri);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 24, 7:39 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7382369
Default Alt Text
D20207.id48251.diff (950 B)

Event Timeline