From 1e3a5bd2c0aede5f10cc4c13f168c7966c59da9b Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 12 Feb 2016 12:07:05 -0800 Subject: [PATCH] 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 --- .../controller/PhabricatorProjectProfileController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/applications/project/controller/PhabricatorProjectProfileController.php b/src/applications/project/controller/PhabricatorProjectProfileController.php index 4e670475ce..27cf1bf344 100644 --- a/src/applications/project/controller/PhabricatorProjectProfileController.php +++ b/src/applications/project/controller/PhabricatorProjectProfileController.php @@ -201,6 +201,10 @@ final class PhabricatorProjectProfileController ->withParentProjectPHIDs(array($project->getPHID())) ->needImages(true) ->withIsMilestone(true) + ->withStatuses( + array( + PhabricatorProjectStatus::STATUS_ACTIVE, + )) ->setOrder('newest') ->execute(); if (!$milestones) { @@ -244,6 +248,10 @@ final class PhabricatorProjectProfileController ->setViewer($viewer) ->withParentProjectPHIDs(array($project->getPHID())) ->needImages(true) + ->withStatuses( + array( + PhabricatorProjectStatus::STATUS_ACTIVE, + )) ->withIsMilestone(false) ->setLimit($limit) ->execute();