mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Limit damage caused by bad panels on dashboards you can manage
Summary: Fixes T12203. If you tried to //manage// a dashboard which had a panel you can't see, we'd try to render bogus actions for it and fatal. Instead, for the moment, survive. Presumably we'll ship a real fix for this in the next release or so, and tackle T10612 / T10145, which I think are closely related. Test Plan: {F2570418} Reviewers: chad Reviewed By: chad Maniphest Tasks: T12203 Differential Revision: https://secure.phabricator.com/D17311
This commit is contained in:
parent
c8de563622
commit
9c62a10989
1 changed files with 4 additions and 0 deletions
|
@ -255,6 +255,10 @@ final class PhabricatorDashboardPanelRenderingEngine extends Phobject {
|
|||
PHUIHeaderView $header) {
|
||||
$panel = $this->getPanel();
|
||||
|
||||
if (!$panel) {
|
||||
return $header;
|
||||
}
|
||||
|
||||
$dashboard_id = $this->getDashboardID();
|
||||
$edit_uri = id(new PhutilURI(
|
||||
'/dashboard/panel/edit/'.$panel->getID().'/'));
|
||||
|
|
Loading…
Reference in a new issue