From 82ca92a9ef1ac9f4234806b7d62a0a0280f8a4d7 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 17 Feb 2016 18:58:29 -0800 Subject: [PATCH] Don't show archived project tags on workboard cards Summary: Ref T10349. Test Plan: - Added archived and unarchived project tags to a task. - Saw unarchived tags, only, on cards. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10349 Differential Revision: https://secure.phabricator.com/D15297 --- src/applications/phid/view/PHUIHandleTagListView.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/applications/phid/view/PHUIHandleTagListView.php b/src/applications/phid/view/PHUIHandleTagListView.php index 0bbfc4d249..baad938051 100644 --- a/src/applications/phid/view/PHUIHandleTagListView.php +++ b/src/applications/phid/view/PHUIHandleTagListView.php @@ -52,6 +52,13 @@ final class PHUIHandleTagListView extends AphrontTagView { protected function getTagContent() { $handles = $this->handles; + // Remove any archived projects from the list. + foreach ($handles as $key => $handle) { + if ($handle->getStatus() == PhabricatorObjectHandle::STATUS_CLOSED) { + unset($handles[$key]); + } + } + // If the list is empty, we may render a "No Projects" tag. if (!$handles) { if (strlen($this->noDataString)) {