mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 17:30:59 +01:00
Filter out archived projects from ProjectProfileView
Summary: This just hides them, should still show on "View All". Test Plan: Hide a Milestone, no longer see it on home. Click "View All", see all Milestones. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15264
This commit is contained in:
parent
de4167d683
commit
1e3a5bd2c0
1 changed files with 8 additions and 0 deletions
|
@ -201,6 +201,10 @@ final class PhabricatorProjectProfileController
|
||||||
->withParentProjectPHIDs(array($project->getPHID()))
|
->withParentProjectPHIDs(array($project->getPHID()))
|
||||||
->needImages(true)
|
->needImages(true)
|
||||||
->withIsMilestone(true)
|
->withIsMilestone(true)
|
||||||
|
->withStatuses(
|
||||||
|
array(
|
||||||
|
PhabricatorProjectStatus::STATUS_ACTIVE,
|
||||||
|
))
|
||||||
->setOrder('newest')
|
->setOrder('newest')
|
||||||
->execute();
|
->execute();
|
||||||
if (!$milestones) {
|
if (!$milestones) {
|
||||||
|
@ -244,6 +248,10 @@ final class PhabricatorProjectProfileController
|
||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withParentProjectPHIDs(array($project->getPHID()))
|
->withParentProjectPHIDs(array($project->getPHID()))
|
||||||
->needImages(true)
|
->needImages(true)
|
||||||
|
->withStatuses(
|
||||||
|
array(
|
||||||
|
PhabricatorProjectStatus::STATUS_ACTIVE,
|
||||||
|
))
|
||||||
->withIsMilestone(false)
|
->withIsMilestone(false)
|
||||||
->setLimit($limit)
|
->setLimit($limit)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
Loading…
Reference in a new issue