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:
parent
097bcb3970
commit
82ca92a9ef
1 changed files with 7 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue