Add a "make the workboard the default view" checkbox when creating a workboard

Summary: Ref T10054. Since we no longer have the "workboard default if it exists" rule, provide a quick way to make it the default.

Test Plan: Created a new workboard with the box checked, saw menu change appropriately.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10054

Differential Revision: https://secure.phabricator.com/D15092
This commit is contained in:
epriestley
2016-01-22 07:36:56 -08:00
parent 66ef506808
commit 0b67e89904
3 changed files with 91 additions and 40 deletions

View File

@@ -133,6 +133,7 @@ abstract class PhabricatorProjectController extends PhabricatorController {
if ($project) {
$engine = id(new PhabricatorProjectProfilePanelEngine())
->setViewer($viewer)
->setController($this)
->setProfileObject($project);
$this->profilePanelEngine = $engine;
}