Skip to content

Commit 0b4ccda

Browse files
author
Chad Little
committedMar 7, 2017
Show only open tasks on Tasks people profile panel
Summary: This currently queries all tasks, make it limit to only open tasks. Test Plan: Assign myself an open and a resolved task. See only open on profile. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D17476
1 parent 129483d commit 0b4ccda

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎src/applications/people/controller/PhabricatorPeopleProfileTasksController.php

+4-5
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,13 @@ public function handleRequest(AphrontRequest $request) {
5757
private function buildTasksView(PhabricatorUser $user) {
5858
$viewer = $this->getViewer();
5959

60+
$open = ManiphestTaskStatus::getOpenStatusConstants();
61+
6062
$tasks = id(new ManiphestTaskQuery())
6163
->setViewer($viewer)
6264
->withOwners(array($user->getPHID()))
65+
->withStatuses($open)
6366
->needProjectPHIDs(true)
64-
->requireCapabilities(
65-
array(
66-
PhabricatorPolicyCapability::CAN_VIEW,
67-
))
6867
->setLimit(100)
6968
->execute();
7069

@@ -74,7 +73,7 @@ private function buildTasksView(PhabricatorUser $user) {
7473
->setUser($viewer)
7574
->setHandles($handles)
7675
->setTasks($tasks)
77-
->setNoDataString(pht('No assigned tasks.'));
76+
->setNoDataString(pht('No open, assigned tasks.'));
7877

7978
$view = id(new PHUIObjectBoxView())
8079
->setHeaderText(pht('Assigned Tasks'))

0 commit comments

Comments
 (0)
Failed to load comments.