Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/editor/ManiphestEditEngine.php
| Show First 20 Lines • Show All 281 Lines • ▼ Show 20 Lines | private function buildCardResponse(ManiphestTask $task) { | ||||
| // If the workboard's project has been removed from the card's project | // If the workboard's project has been removed from the card's project | ||||
| // list, we are going to remove it from the board completely. | // list, we are going to remove it from the board completely. | ||||
| $project_map = array_fuse($task->getProjectPHIDs()); | $project_map = array_fuse($task->getProjectPHIDs()); | ||||
| $remove_card = empty($project_map[$column->getProjectPHID()]); | $remove_card = empty($project_map[$column->getProjectPHID()]); | ||||
| $positions = id(new PhabricatorProjectColumnPositionQuery()) | $positions = id(new PhabricatorProjectColumnPositionQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withColumns(array($column)) | ->withBoardPHIDs(array($column->getProjectPHID())) | ||||
| ->withColumnPHIDs(array($column->getPHID())) | |||||
| ->execute(); | ->execute(); | ||||
| $task_phids = mpull($positions, 'getObjectPHID'); | $task_phids = mpull($positions, 'getObjectPHID'); | ||||
| $column_tasks = id(new ManiphestTaskQuery()) | $column_tasks = id(new ManiphestTaskQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withPHIDs($task_phids) | ->withPHIDs($task_phids) | ||||
| ->needProjectPHIDs(true) | ->needProjectPHIDs(true) | ||||
| ->execute(); | ->execute(); | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||