diff --git a/src/applications/maniphest/controller/report/ManiphestReportController.php b/src/applications/maniphest/controller/report/ManiphestReportController.php
index 84fcd95dbc..91a95a96e4 100644
--- a/src/applications/maniphest/controller/report/ManiphestReportController.php
+++ b/src/applications/maniphest/controller/report/ManiphestReportController.php
@@ -424,15 +424,15 @@ final class ManiphestReportController extends ManiphestController {
$leftover_closed = idx($result_closed, '', array());
unset($result_closed['']);
+ $base_link = '/maniphest/?users=';
$leftover_name = phutil_render_tag(
'a',
array(
- 'href' => '/maniphest/?users=PHID-!!!!-UP-FOR-GRABS',
+ 'href' => $base_link.ManiphestTaskOwner::OWNER_UP_FOR_GRABS,
),
- '(Up For Grabs)');
+ '(Up For Grabs)');
$col_header = 'User';
$header = 'Open Tasks by User and Priority ('.$date.')';
- $base_link = '/maniphest/?users=';
break;
case 'project':
$result = array();
@@ -461,15 +461,15 @@ final class ManiphestReportController extends ManiphestController {
}
}
+ $base_link = '/maniphest/view/all/?projects=';
$leftover_name = phutil_render_tag(
'a',
array(
- 'href' => '/maniphest/view/all/?projects=PHID-!!!!-NO_PROJECT',
+ 'href' => $base_link.ManiphestTaskOwner::PROJECT_NO_PROJECT,
),
- '(No Project)');
+ '(No Project)');
$col_header = 'Project';
$header = 'Open Tasks by Project and Priority ('.$date.')';
- $base_link = '/maniphest/view/all/?projects=';
break;
}
diff --git a/src/applications/maniphest/controller/report/__init__.php b/src/applications/maniphest/controller/report/__init__.php
index 3ff3109a4f..f07f5c347a 100644
--- a/src/applications/maniphest/controller/report/__init__.php
+++ b/src/applications/maniphest/controller/report/__init__.php
@@ -8,6 +8,7 @@
phutil_require_module('phabricator', 'aphront/response/404');
phutil_require_module('phabricator', 'aphront/response/redirect');
+phutil_require_module('phabricator', 'applications/maniphest/constants/owner');
phutil_require_module('phabricator', 'applications/maniphest/constants/priority');
phutil_require_module('phabricator', 'applications/maniphest/constants/status');
phutil_require_module('phabricator', 'applications/maniphest/constants/transactiontype');