Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/query/ManiphestTaskSearchEngine.php
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | public function newQuery() { | ||||
| return id(new ManiphestTaskQuery()) | return id(new ManiphestTaskQuery()) | ||||
| ->needProjectPHIDs(true); | ->needProjectPHIDs(true); | ||||
| } | } | ||||
| protected function buildCustomSearchFields() { | protected function buildCustomSearchFields() { | ||||
| // Hide the "Subtypes" constraint from the web UI if the install only | // Hide the "Subtypes" constraint from the web UI if the install only | ||||
| // defines one task subtype, since it isn't of any use in this case. | // defines one task subtype, since it isn't of any use in this case. | ||||
| $subtype_map = id(new ManiphestTask())->newEditEngineSubtypeMap(); | $subtype_map = id(new ManiphestTask())->newEditEngineSubtypeMap(); | ||||
| $hide_subtypes = (count($subtype_map) == 1); | $hide_subtypes = ($subtype_map->getCount() == 1); | ||||
| return array( | return array( | ||||
| id(new PhabricatorOwnersSearchField()) | id(new PhabricatorOwnersSearchField()) | ||||
| ->setLabel(pht('Assigned To')) | ->setLabel(pht('Assigned To')) | ||||
| ->setKey('assignedPHIDs') | ->setKey('assignedPHIDs') | ||||
| ->setConduitKey('assigned') | ->setConduitKey('assigned') | ||||
| ->setAliases(array('assigned')) | ->setAliases(array('assigned')) | ||||
| ->setDescription( | ->setDescription( | ||||
| ▲ Show 20 Lines • Show All 530 Lines • Show Last 20 Lines | |||||