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
This commit is contained in:
parent
129483d5ea
commit
0b4ccdade9
|
@ -57,14 +57,13 @@ final class PhabricatorPeopleProfileTasksController
|
|||
private function buildTasksView(PhabricatorUser $user) {
|
||||
$viewer = $this->getViewer();
|
||||
|
||||
$open = ManiphestTaskStatus::getOpenStatusConstants();
|
||||
|
||||
$tasks = id(new ManiphestTaskQuery())
|
||||
->setViewer($viewer)
|
||||
->withOwners(array($user->getPHID()))
|
||||
->withStatuses($open)
|
||||
->needProjectPHIDs(true)
|
||||
->requireCapabilities(
|
||||
array(
|
||||
PhabricatorPolicyCapability::CAN_VIEW,
|
||||
))
|
||||
->setLimit(100)
|
||||
->execute();
|
||||
|
||||
|
@ -74,7 +73,7 @@ final class PhabricatorPeopleProfileTasksController
|
|||
->setUser($viewer)
|
||||
->setHandles($handles)
|
||||
->setTasks($tasks)
|
||||
->setNoDataString(pht('No assigned tasks.'));
|
||||
->setNoDataString(pht('No open, assigned tasks.'));
|
||||
|
||||
$view = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('Assigned Tasks'))
|
||||
|
|
Loading…
Reference in a new issue