@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+4 -5
+4 -5
src/applications/people/controller/PhabricatorPeopleProfileTasksController.php
··· 57 57 private function buildTasksView(PhabricatorUser $user) { 58 58 $viewer = $this->getViewer(); 59 59 60 + $open = ManiphestTaskStatus::getOpenStatusConstants(); 61 + 60 62 $tasks = id(new ManiphestTaskQuery()) 61 63 ->setViewer($viewer) 62 64 ->withOwners(array($user->getPHID())) 65 + ->withStatuses($open) 63 66 ->needProjectPHIDs(true) 64 - ->requireCapabilities( 65 - array( 66 - PhabricatorPolicyCapability::CAN_VIEW, 67 - )) 68 67 ->setLimit(100) 69 68 ->execute(); 70 69 ··· 74 73 ->setUser($viewer) 75 74 ->setHandles($handles) 76 75 ->setTasks($tasks) 77 - ->setNoDataString(pht('No assigned tasks.')); 76 + ->setNoDataString(pht('No open, assigned tasks.')); 78 77 79 78 $view = id(new PHUIObjectBoxView()) 80 79 ->setHeaderText(pht('Assigned Tasks'))