Differential D20698 Diff 49362 src/applications/project/controller/PhabricatorProjectColumnBulkMoveController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectColumnBulkMoveController.php
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | if ($dst_project) { | ||||
$layout_engine = id(new PhabricatorBoardLayoutEngine()) | $layout_engine = id(new PhabricatorBoardLayoutEngine()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->setBoardPHIDs(array($dst_project->getPHID())) | ->setBoardPHIDs(array($dst_project->getPHID())) | ||||
->setFetchAllBoards(true) | ->setFetchAllBoards(true) | ||||
->executeLayout(); | ->executeLayout(); | ||||
$dst_columns = $layout_engine->getColumns($dst_project->getPHID()); | $dst_columns = $layout_engine->getColumns($dst_project->getPHID()); | ||||
$dst_columns = mpull($columns, null, 'getPHID'); | $dst_columns = mpull($dst_columns, null, 'getPHID'); | ||||
$has_column = false; | $has_column = false; | ||||
$dst_column = null; | $dst_column = null; | ||||
// If we're performing a move on the same board, default the | // If we're performing a move on the same board, default the | ||||
// control value to the current column. | // control value to the current column. | ||||
if ($same_project) { | if ($same_project) { | ||||
$dst_column_phid = $src_column->getPHID(); | $dst_column_phid = $src_column->getPHID(); | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |