From 1965bf9e52684c3606b47ae4d184e4db1578a533 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 4 Dec 2013 08:07:11 -0800 Subject: [PATCH] Show "Tnnn" crumb on Edit Task screen Summary: Fixes T4198. We don't currently show "(Maniphest) > T123 > Edit" on the edit screen, which is inconsistent. Add the "T123" crumb. Test Plan: {F87177} Reviewers: chad, btrahan Reviewed By: chad CC: aran Maniphest Tasks: T4198 Differential Revision: https://secure.phabricator.com/D7699 --- .../maniphest/controller/ManiphestTaskEditController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/applications/maniphest/controller/ManiphestTaskEditController.php b/src/applications/maniphest/controller/ManiphestTaskEditController.php index 6f58e52647..4038c96a3d 100644 --- a/src/applications/maniphest/controller/ManiphestTaskEditController.php +++ b/src/applications/maniphest/controller/ManiphestTaskEditController.php @@ -665,6 +665,14 @@ final class ManiphestTaskEditController extends ManiphestController { } $crumbs = $this->buildApplicationCrumbs(); + + if ($task->getID()) { + $crumbs->addCrumb( + id(new PhabricatorCrumbView()) + ->setName('T'.$task->getID()) + ->setHref('/T'.$task->getID())); + } + $crumbs->addCrumb( id(new PhabricatorCrumbView()) ->setName($header_name));