Differential D17445 Diff 41957 src/applications/project/controller/PhabricatorProjectBoardViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectBoardViewController.php
Show First 20 Lines • Show All 904 Lines • ▼ Show 20 Lines | final class PhabricatorProjectBoardViewController | ||||
private function getCreateURI() { | private function getCreateURI() { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
// TODO: This should be cleaned up, but maybe we're going to make options | // TODO: This should be cleaned up, but maybe we're going to make options | ||||
// for each column or board? | // for each column or board? | ||||
$edit_config = id(new ManiphestEditEngine()) | $edit_config = id(new ManiphestEditEngine()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->loadDefaultEditConfiguration(); | ->loadDefaultEditConfiguration(new ManiphestTask()); | ||||
if ($edit_config) { | if ($edit_config) { | ||||
$form_key = $edit_config->getIdentifier(); | $form_key = $edit_config->getIdentifier(); | ||||
$create_uri = "/maniphest/task/edit/form/{$form_key}/"; | $create_uri = "/maniphest/task/edit/form/{$form_key}/"; | ||||
} else { | } else { | ||||
$create_uri = '/maniphest/task/edit/'; | $create_uri = '/maniphest/task/edit/'; | ||||
} | } | ||||
return $create_uri; | return $create_uri; | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |