Page MenuHomePhabricator

D20902.id49820.diff
No OneTemporary

D20902.id49820.diff

diff --git a/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php b/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php
--- a/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php
+++ b/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php
@@ -329,9 +329,16 @@
$actions = array();
if ($panel) {
- $panel_actions = $panel->newHeaderEditActions(
- $viewer,
- $context_phid);
+ try {
+ $panel_actions = $panel->newHeaderEditActions(
+ $viewer,
+ $context_phid);
+ } catch (Exception $ex) {
+ $error_action = id(new PhabricatorActionView())
+ ->setIcon('fa-exclamation-triangle red')
+ ->setName(pht('<Rendering Exception>'));
+ $panel_actions[] = $error_action;
+ }
if ($panel_actions) {
foreach ($panel_actions as $panel_action) {
diff --git a/src/applications/differential/query/DifferentialChangesetSearchEngine.php b/src/applications/differential/query/DifferentialChangesetSearchEngine.php
--- a/src/applications/differential/query/DifferentialChangesetSearchEngine.php
+++ b/src/applications/differential/query/DifferentialChangesetSearchEngine.php
@@ -22,6 +22,10 @@
return 'PhabricatorDifferentialApplication';
}
+ public function canUseInPanelContext() {
+ return false;
+ }
+
public function newQuery() {
$query = id(new DifferentialChangesetQuery());

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 16, 1:58 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712441
Default Alt Text
D20902.id49820.diff (1 KB)

Event Timeline