Differential D25345 Diff 1122 src/applications/dashboard/controller/dashboard/PhabricatorDashboardAdjustController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/controller/dashboard/PhabricatorDashboardAdjustController.php
Show All 36 Lines | if (strlen($panel_key)) { | ||||
if (!$panel_ref) { | if (!$panel_ref) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$this->panelKey = $panel_key; | $this->panelKey = $panel_key; | ||||
} | } | ||||
$column_key = $request->getStr('columnKey'); | $column_key = $request->getStr('columnKey'); | ||||
if (strlen($column_key)) { | if (phutil_nonempty_string($column_key)) { | ||||
$columns = $ref_list->getColumns(); | $columns = $ref_list->getColumns(); | ||||
if (!isset($columns[$column_key])) { | if (!isset($columns[$column_key])) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$this->columnKey = $column_key; | $this->columnKey = $column_key; | ||||
} | } | ||||
$after_ref = null; | $after_ref = null; | ||||
$after_key = $request->getStr('afterKey'); | $after_key = $request->getStr('afterKey'); | ||||
if (strlen($after_key)) { | if (phutil_nonempty_string($after_key)) { | ||||
$after_ref = $ref_list->getPanelRef($after_key); | $after_ref = $ref_list->getPanelRef($after_key); | ||||
if (!$after_ref) { | if (!$after_ref) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
} | } | ||||
switch ($request->getURIData('op')) { | switch ($request->getURIData('op')) { | ||||
case 'add': | case 'add': | ||||
▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0