Differential D20154 Diff 48161 src/applications/project/controller/PhabricatorProjectColumnHideController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectColumnHideController.php
Show All 35 Lines | if (!$column) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$column_phid = $column->getPHID(); | $column_phid = $column->getPHID(); | ||||
$view_uri = $this->getApplicationURI('/board/'.$project_id.'/'); | $view_uri = $this->getApplicationURI('/board/'.$project_id.'/'); | ||||
$view_uri = new PhutilURI($view_uri); | $view_uri = new PhutilURI($view_uri); | ||||
foreach ($request->getPassthroughRequestData() as $key => $value) { | foreach ($request->getPassthroughRequestData() as $key => $value) { | ||||
$view_uri->setQueryParam($key, $value); | $view_uri->replaceQueryParam($key, $value); | ||||
} | } | ||||
if ($column->isDefaultColumn()) { | if ($column->isDefaultColumn()) { | ||||
return $this->newDialog() | return $this->newDialog() | ||||
->setTitle(pht('Can Not Hide Default Column')) | ->setTitle(pht('Can Not Hide Default Column')) | ||||
->appendParagraph( | ->appendParagraph( | ||||
pht('You can not hide the default/backlog column on a board.')) | pht('You can not hide the default/backlog column on a board.')) | ||||
->addCancelButton($view_uri, pht('Okay')); | ->addCancelButton($view_uri, pht('Okay')); | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |