From 7aa865db2ddf84df8a21fccce600fd2cf381fddb Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 4 Dec 2015 14:15:38 -0800 Subject: [PATCH] Swap "Create Task" button over to EditEngine Summary: Ref T9132. I can't actually get rid of the EditController yet since a few weird things still use it, but I think I can swap this button out without breaking anything. This will let us do "New Feature Request" / "New Bug" / "Advanced Task Creation" on secure and start playing with this stuff sooner. Test Plan: Clicked "Create Task", got sent to new form. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9132 Differential Revision: https://secure.phabricator.com/D14673 --- .../maniphest/controller/ManiphestController.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/applications/maniphest/controller/ManiphestController.php b/src/applications/maniphest/controller/ManiphestController.php index b65811128d..fc2fcd328c 100644 --- a/src/applications/maniphest/controller/ManiphestController.php +++ b/src/applications/maniphest/controller/ManiphestController.php @@ -30,11 +30,9 @@ abstract class ManiphestController extends PhabricatorController { protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); - $crumbs->addAction( - id(new PHUIListItemView()) - ->setName(pht('Create Task')) - ->setHref($this->getApplicationURI('task/create/')) - ->setIcon('fa-plus-square')); + id(new ManiphestEditEngine()) + ->setViewer($this->getViewer()) + ->addActionToCrumbs($crumbs); return $crumbs; }