Differential D20265 Diff 48400 src/applications/project/controller/PhabricatorProjectBoardViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectBoardViewController.php
Show First 20 Lines • Show All 516 Lines • ▼ Show 20 Lines | foreach ($columns as $column) { | ||||
continue; | continue; | ||||
} | } | ||||
$task_phids = $layout_engine->getColumnObjectPHIDs( | $task_phids = $layout_engine->getColumnObjectPHIDs( | ||||
$board_phid, | $board_phid, | ||||
$column->getPHID()); | $column->getPHID()); | ||||
$column_tasks = array_select_keys($tasks, $task_phids); | $column_tasks = array_select_keys($tasks, $task_phids); | ||||
// If we aren't using "natural" order, reorder the column by the original | |||||
// query order. | |||||
if ($this->sortKey != PhabricatorProjectColumn::ORDER_NATURAL) { | |||||
$column_tasks = array_select_keys($column_tasks, array_keys($tasks)); | |||||
} | |||||
epriestley: We always sort cards on the client, so we don't need this (not entirely sure if we ever did). | |||||
$column_phid = $column->getPHID(); | $column_phid = $column->getPHID(); | ||||
$visible_columns[$column_phid] = $column; | $visible_columns[$column_phid] = $column; | ||||
$column_phids[$column_phid] = $column_tasks; | $column_phids[$column_phid] = $column_tasks; | ||||
foreach ($column_tasks as $phid => $task) { | foreach ($column_tasks as $phid => $task) { | ||||
$visible_phids[$phid] = $phid; | $visible_phids[$phid] = $phid; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | $behavior_config = array( | ||||
'orderMaps' => mpull($all_tasks, 'getWorkboardOrderVectors'), | 'orderMaps' => mpull($all_tasks, 'getWorkboardOrderVectors'), | ||||
'propertyMaps' => mpull($all_tasks, 'getWorkboardProperties'), | 'propertyMaps' => mpull($all_tasks, 'getWorkboardProperties'), | ||||
'boardID' => $board_id, | 'boardID' => $board_id, | ||||
'projectPHID' => $project->getPHID(), | 'projectPHID' => $project->getPHID(), | ||||
); | ); | ||||
$this->initBehavior('project-boards', $behavior_config); | $this->initBehavior('project-boards', $behavior_config); | ||||
$sort_menu = $this->buildSortMenu( | $sort_menu = $this->buildSortMenu( | ||||
$viewer, | $viewer, | ||||
$project, | $project, | ||||
$this->sortKey); | $this->sortKey); | ||||
$filter_menu = $this->buildFilterMenu( | $filter_menu = $this->buildFilterMenu( | ||||
$viewer, | $viewer, | ||||
$project, | $project, | ||||
▲ Show 20 Lines • Show All 733 Lines • Show Last 20 Lines |
We always sort cards on the client, so we don't need this (not entirely sure if we ever did).