Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15369166
D19123.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19123.diff
View Options
diff --git a/src/applications/dashboard/storage/PhabricatorDashboard.php b/src/applications/dashboard/storage/PhabricatorDashboard.php
--- a/src/applications/dashboard/storage/PhabricatorDashboard.php
+++ b/src/applications/dashboard/storage/PhabricatorDashboard.php
@@ -74,7 +74,15 @@
public function setLayoutConfigFromObject(
PhabricatorDashboardLayoutConfig $object) {
+
$this->setLayoutConfig($object->toDictionary());
+
+ // See PHI385. Dashboard panel mutations rely on changes to the Dashboard
+ // object persisting when transactions are applied, but this assumption is
+ // no longer valid after T13054. For now, just save the dashboard
+ // explicitly.
+ $this->save();
+
return $this;
}
diff --git a/src/applications/dashboard/typeahead/PhabricatorDashboardPanelDatasource.php b/src/applications/dashboard/typeahead/PhabricatorDashboardPanelDatasource.php
--- a/src/applications/dashboard/typeahead/PhabricatorDashboardPanelDatasource.php
+++ b/src/applications/dashboard/typeahead/PhabricatorDashboardPanelDatasource.php
@@ -34,8 +34,10 @@
$impl = $panel->getImplementation();
if ($impl) {
$type_text = $impl->getPanelTypeName();
+ $icon = $impl->getIcon();
} else {
$type_text = nonempty($panel->getPanelType(), pht('Unknown Type'));
+ $icon = 'fa-question';
}
$id = $panel->getID();
$monogram = $panel->getMonogram();
@@ -44,7 +46,7 @@
$result = id(new PhabricatorTypeaheadResult())
->setName($monogram.' '.$panel->getName())
->setPHID($id)
- ->setIcon($impl->getIcon())
+ ->setIcon($icon)
->addAttribute($type_text);
if (!empty($properties['class'])) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 5:37 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7394665
Default Alt Text
D19123.diff (1 KB)
Attached To
Mode
D19123: Make dashboard arrange actions (move, add, remove) work again after read locking from "chaos reduction"
Attached
Detach File
Event Timeline
Log In to Comment