Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/engine/PhabricatorBoardLayoutEngine.php
Show First 20 Lines • Show All 330 Lines • ▼ Show 20 Lines | final class PhabricatorBoardLayoutEngine extends Phobject { | ||||
} | } | ||||
private function loadColumns(array $boards) { | private function loadColumns(array $boards) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$columns = id(new PhabricatorProjectColumnQuery()) | $columns = id(new PhabricatorProjectColumnQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withProjectPHIDs(array_keys($boards)) | ->withProjectPHIDs(array_keys($boards)) | ||||
->needTriggers(true) | |||||
->execute(); | ->execute(); | ||||
$columns = msort($columns, 'getOrderingKey'); | $columns = msort($columns, 'getOrderingKey'); | ||||
$columns = mpull($columns, null, 'getPHID'); | $columns = mpull($columns, null, 'getPHID'); | ||||
$need_children = array(); | $need_children = array(); | ||||
foreach ($boards as $phid => $board) { | foreach ($boards as $phid => $board) { | ||||
if ($board->getHasMilestones() || $board->getHasSubprojects()) { | if ($board->getHasMilestones() || $board->getHasSubprojects()) { | ||||
$need_children[] = $phid; | $need_children[] = $phid; | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |