Differential D9884 Diff 23734 src/applications/maniphest/controller/ManiphestTaskDetailController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestTaskDetailController.php
Show First 20 Lines • Show All 276 Lines • ▼ Show 20 Lines | public function processRequest() { | ||||
$control_map = array( | $control_map = array( | ||||
ManiphestTransaction::TYPE_STATUS => 'resolution', | ManiphestTransaction::TYPE_STATUS => 'resolution', | ||||
ManiphestTransaction::TYPE_OWNER => 'assign_to', | ManiphestTransaction::TYPE_OWNER => 'assign_to', | ||||
ManiphestTransaction::TYPE_CCS => 'ccs', | ManiphestTransaction::TYPE_CCS => 'ccs', | ||||
ManiphestTransaction::TYPE_PRIORITY => 'priority', | ManiphestTransaction::TYPE_PRIORITY => 'priority', | ||||
ManiphestTransaction::TYPE_PROJECTS => 'projects', | ManiphestTransaction::TYPE_PROJECTS => 'projects', | ||||
); | ); | ||||
$projects_source = new PhabricatorProjectDatasource(); | |||||
$tokenizer_map = array( | $tokenizer_map = array( | ||||
ManiphestTransaction::TYPE_PROJECTS => array( | ManiphestTransaction::TYPE_PROJECTS => array( | ||||
'id' => 'projects-tokenizer', | 'id' => 'projects-tokenizer', | ||||
'src' => '/typeahead/common/projects/', | 'src' => $projects_source->getDatasourceURI(), | ||||
'placeholder' => pht('Type a project name...'), | 'placeholder' => $projects_source->getPlaceholderText(), | ||||
), | ), | ||||
ManiphestTransaction::TYPE_OWNER => array( | ManiphestTransaction::TYPE_OWNER => array( | ||||
'id' => 'assign-tokenizer', | 'id' => 'assign-tokenizer', | ||||
'src' => '/typeahead/common/users/', | 'src' => '/typeahead/common/users/', | ||||
'value' => $default_claim, | 'value' => $default_claim, | ||||
'limit' => 1, | 'limit' => 1, | ||||
'placeholder' => pht('Type a user name...'), | 'placeholder' => pht('Type a user name...'), | ||||
), | ), | ||||
▲ Show 20 Lines • Show All 400 Lines • Show Last 20 Lines |