Scuttle Workboards if Maniphest is not installed
Summary: fix T9718. Test Plan: view project page when maniphest is and isn't. Look for Workboards. Reviewers: #blessed_reviewers, chad Reviewed By: #blessed_reviewers, chad Subscribers: epriestley Maniphest Tasks: T9718 Differential Revision: https://secure.phabricator.com/D14438
This commit is contained in:
@@ -70,11 +70,11 @@ abstract class PhabricatorProjectController extends PhabricatorController {
|
|||||||
$nav->setIconNav(true);
|
$nav->setIconNav(true);
|
||||||
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
||||||
$nav->addIcon("profile/{$id}/", $name, null, $picture);
|
$nav->addIcon("profile/{$id}/", $name, null, $picture);
|
||||||
$nav->addIcon("board/{$id}/", pht('Workboard'), $board_icon);
|
|
||||||
|
|
||||||
$class = 'PhabricatorManiphestApplication';
|
$class = 'PhabricatorManiphestApplication';
|
||||||
if (PhabricatorApplication::isClassInstalledForViewer($class, $viewer)) {
|
if (PhabricatorApplication::isClassInstalledForViewer($class, $viewer)) {
|
||||||
$phid = $project->getPHID();
|
$phid = $project->getPHID();
|
||||||
|
$nav->addIcon("board/{$id}/", pht('Workboard'), $board_icon);
|
||||||
$query_uri = urisprintf(
|
$query_uri = urisprintf(
|
||||||
'/maniphest/?statuses=open()&projects=%s#R',
|
'/maniphest/?statuses=open()&projects=%s#R',
|
||||||
$phid);
|
$phid);
|
||||||
|
|||||||
Reference in New Issue
Block a user