mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-15 18:10:53 +01:00
(stable) 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:
parent
6c211317fc
commit
5fee24fa43
2 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue