Merge branch 'blender-tweaks' of git.blender.org:phabricator into blender-tweaks
This commit is contained in:
@@ -174,13 +174,18 @@ abstract class ManiphestController extends PhabricatorController {
|
|||||||
->withIDs(array($this->projectKey))
|
->withIDs(array($this->projectKey))
|
||||||
->executeOne();
|
->executeOne();
|
||||||
if ($project) {
|
if ($project) {
|
||||||
|
// Special for for Blender and Addons reports.
|
||||||
|
$form = 1;
|
||||||
|
if ($this->projectKey == 3) {
|
||||||
|
$form = 2;
|
||||||
|
}
|
||||||
$crumbs->addTextCrumb(pht($project->getName()),
|
$crumbs->addTextCrumb(pht($project->getName()),
|
||||||
$this->taskTypeKey? '/maniphest/project/'.$this->projectKey: null);
|
$this->taskTypeKey? '/maniphest/project/'.$this->projectKey: null);
|
||||||
|
|
||||||
$crumbs->addAction(
|
$crumbs->addAction(
|
||||||
id(new PHUIListItemView())
|
id(new PHUIListItemView())
|
||||||
->setName(pht('Report Bug'))
|
->setName(pht('Report Bug'))
|
||||||
->setHref($this->getApplicationURI('task/edit/form/default/?project='.
|
->setHref($this->getApplicationURI('task/edit/form/' . $form . '/?project='.
|
||||||
$project->getPHID().'&type=Bug'))
|
$project->getPHID().'&type=Bug'))
|
||||||
->setIcon('fa-plus-square'));
|
->setIcon('fa-plus-square'));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user