1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 20:40:56 +01:00

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
This commit is contained in:
epriestley 2016-02-17 18:58:29 -08:00
parent 097bcb3970
commit 82ca92a9ef

View file

@ -52,6 +52,13 @@ final class PHUIHandleTagListView extends AphrontTagView {
protected function getTagContent() { protected function getTagContent() {
$handles = $this->handles; $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 the list is empty, we may render a "No Projects" tag.
if (!$handles) { if (!$handles) {
if (strlen($this->noDataString)) { if (strlen($this->noDataString)) {