Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14097051
D19449.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
982 B
Referenced Files
None
Subscribers
None
D19449.diff
View Options
diff --git a/src/applications/dashboard/controller/PhabricatorDashboardProfileController.php b/src/applications/dashboard/controller/PhabricatorDashboardProfileController.php
--- a/src/applications/dashboard/controller/PhabricatorDashboardProfileController.php
+++ b/src/applications/dashboard/controller/PhabricatorDashboardProfileController.php
@@ -44,13 +44,16 @@
}
protected function buildApplicationCrumbs() {
- $dashboard = $this->getDashboard();
- $id = $dashboard->getID();
- $dashboard_uri = $this->getApplicationURI("/view/{$id}/");
-
$crumbs = parent::buildApplicationCrumbs();
- $crumbs->addTextCrumb($dashboard->getName(), $dashboard_uri);
$crumbs->setBorder(true);
+
+ $dashboard = $this->getDashboard();
+ if ($dashboard) {
+ $id = $dashboard->getID();
+ $dashboard_uri = $this->getApplicationURI("/view/{$id}/");
+ $crumbs->addTextCrumb($dashboard->getName(), $dashboard_uri);
+ }
+
return $crumbs;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 6:20 AM (21 h, 20 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6788463
Default Alt Text
D19449.diff (982 B)
Attached To
Mode
D19449: Fix a fatal during breadcrumb construction when viewing a dashboard you don't have permission to view
Attached
Detach File
Event Timeline
Log In to Comment