Differential D20373 Diff 48639 src/applications/dashboard/controller/PhabricatorDashboardRemovePanelController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/controller/PhabricatorDashboardRemovePanelController.php
Show All 36 Lines | foreach ($columns as $column) { | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if (!$panel_on_dashboard) { | if (!$panel_on_dashboard) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$redirect_uri = $this->getApplicationURI( | $redirect_uri = $dashboard->getURI(); | ||||
'arrange/'.$dashboard->getID().'/'); | |||||
$layout_config = $dashboard->getLayoutConfigObject(); | $layout_config = $dashboard->getLayoutConfigObject(); | ||||
if ($request->isFormPost()) { | if ($request->isFormPost()) { | ||||
$xactions = array(); | $xactions = array(); | ||||
$xactions[] = id(new PhabricatorDashboardTransaction()) | $xactions[] = id(new PhabricatorDashboardTransaction()) | ||||
->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ||||
->setMetadataValue( | ->setMetadataValue( | ||||
'edge:type', | 'edge:type', | ||||
Show All 35 Lines |