@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.

Only hide archived project tags on workboard cards

Summary: Fixes T10413. I accidentally hid these //everywhere//, but only intended to hide them on workboards.

Test Plan:
- Viewed a workboard, saw un-archived projects only.
- Viewed a task detail page, saw archived and un-archived projects.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10413

Differential Revision: https://secure.phabricator.com/D15335

+10 -7
-7
src/applications/phid/view/PHUIHandleTagListView.php
··· 52 52 protected function getTagContent() { 53 53 $handles = $this->handles; 54 54 55 - // Remove any archived projects from the list. 56 - foreach ($handles as $key => $handle) { 57 - if ($handle->getStatus() == PhabricatorObjectHandle::STATUS_CLOSED) { 58 - unset($handles[$key]); 59 - } 60 - } 61 - 62 55 // If the list is empty, we may render a "No Projects" tag. 63 56 if (!$handles) { 64 57 if (strlen($this->noDataString)) {
+10
src/applications/project/view/ProjectBoardTaskCard.php
··· 116 116 } 117 117 118 118 $project_handles = $this->getProjectHandles(); 119 + 120 + // Remove any archived projects from the list. 121 + if ($project_handles) { 122 + foreach ($project_handles as $key => $handle) { 123 + if ($handle->getStatus() == PhabricatorObjectHandle::STATUS_CLOSED) { 124 + unset($project_handles[$key]); 125 + } 126 + } 127 + } 128 + 119 129 if ($project_handles) { 120 130 $tag_list = id(new PHUIHandleTagListView()) 121 131 ->setSlim(true)