Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2686228
D25602.1734709739.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25602.1734709739.diff
View Options
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
@@ -487,6 +487,12 @@
);
}
+ private function getAveragePriority() {
+ // TODO: This is sort of a hard-code for the default "normal" status.
+ // When reports are more powerful, this should be made more general.
+ return 50;
+ }
+
public function renderOpenTasks() {
$request = $this->getRequest();
$viewer = $request->getUser();
@@ -626,9 +632,7 @@
$normal_or_better = array();
foreach ($taskv as $id => $task) {
- // TODO: This is sort of a hard-code for the default "normal" status.
- // When reports are more powerful, this should be made more general.
- if ($task->getPriority() < 50) {
+ if ($task->getPriority() < $this->getAveragePriority()) {
continue;
}
$normal_or_better[$id] = $task;
@@ -700,13 +704,22 @@
),
pht('Oldest (All)'));
$cclass[] = 'n';
+ $low_priorities = array();
+ $priorities_map = ManiphestTaskPriority::getTaskPriorityMap();
+ $normal_priority = $this->getAveragePriority();
+ foreach ($priorities_map as $pri => $full_label) {
+ if ($pri < $normal_priority) {
+ $low_priorities[] = $full_label;
+ }
+ }
+ $pri_string = implode(', ', $low_priorities);
$cname[] = javelin_tag(
'span',
array(
'sigil' => 'has-tooltip',
'meta' => array(
'tip' => pht(
- 'Oldest open task, excluding those with Low or Wishlist priority.'),
+ 'Oldest open task, excluding those with priority %s', $pri_string),
'size' => 200,
),
),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 15:48 (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1019032
Default Alt Text
D25602.1734709739.diff (1 KB)
Attached To
Mode
D25602: Do not hardcode default Priority names in Project Reports tooltip
Attached
Detach File
Event Timeline
Log In to Comment