Differential D20331 Diff 48535 src/applications/project/controller/PhabricatorProjectColumnHideController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectColumnHideController.php
| Show All 32 Lines | $column = id(new PhabricatorProjectColumnQuery()) | ||||
| )) | )) | ||||
| ->executeOne(); | ->executeOne(); | ||||
| if (!$column) { | 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 = $project->getWorkboardURI(); | ||||
| $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->replaceQueryParam($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')) | ||||
| ▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines | |||||