Add required needMembers/needWatchers calls to Project Profile/Subprojects tabs
Summary: Fixes T12710. See that task for discussion. This is pretty ugly/redundant but not broken. (Feel free to reject this and pursue something else.) Test Plan: - For a project with active subprojects/milestones, viewed the project profile and subprojects tabs. - After patch: they're ugly, but no longer fatal. Reviewers: chad Reviewed By: chad Maniphest Tasks: T12710 Differential Revision: https://secure.phabricator.com/D17882
This commit is contained in:
@@ -262,6 +262,8 @@ final class PhabricatorProjectProfileController
|
|||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withParentProjectPHIDs(array($project->getPHID()))
|
->withParentProjectPHIDs(array($project->getPHID()))
|
||||||
->needImages(true)
|
->needImages(true)
|
||||||
|
->needMembers(true)
|
||||||
|
->needWatchers(true)
|
||||||
->withStatuses(
|
->withStatuses(
|
||||||
array(
|
array(
|
||||||
PhabricatorProjectStatus::STATUS_ACTIVE,
|
PhabricatorProjectStatus::STATUS_ACTIVE,
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ final class PhabricatorProjectSubprojectsController
|
|||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withParentProjectPHIDs(array($project->getPHID()))
|
->withParentProjectPHIDs(array($project->getPHID()))
|
||||||
->needImages(true)
|
->needImages(true)
|
||||||
|
->needMembers(true)
|
||||||
|
->needWatchers(true)
|
||||||
->withIsMilestone(false)
|
->withIsMilestone(false)
|
||||||
->execute();
|
->execute();
|
||||||
} else {
|
} else {
|
||||||
@@ -42,6 +44,8 @@ final class PhabricatorProjectSubprojectsController
|
|||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withParentProjectPHIDs(array($project->getPHID()))
|
->withParentProjectPHIDs(array($project->getPHID()))
|
||||||
->needImages(true)
|
->needImages(true)
|
||||||
|
->needMembers(true)
|
||||||
|
->needWatchers(true)
|
||||||
->withIsMilestone(true)
|
->withIsMilestone(true)
|
||||||
->setOrderVector(array('milestoneNumber', 'id'))
|
->setOrderVector(array('milestoneNumber', 'id'))
|
||||||
->execute();
|
->execute();
|
||||||
|
|||||||
Reference in New Issue
Block a user