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:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user