Differential D19768 Diff 47222 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 197 Lines • ▼ Show 20 Lines | if ($query_column_id) { | ||||
if (!$query_column) { | if (!$query_column) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
// Create a saved query to combine the active filter on the workboard | // Create a saved query to combine the active filter on the workboard | ||||
// with the column filter. If the user currently has constraints on the | // with the column filter. If the user currently has constraints on the | ||||
// board, we want to add a new column or project constraint, not | // board, we want to add a new column or project constraint, not | ||||
// completely replace the constraints. | // completely replace the constraints. | ||||
$saved_query = clone $saved; | $saved_query = $saved->newCopy(); | ||||
if ($query_column->getProxyPHID()) { | if ($query_column->getProxyPHID()) { | ||||
$project_phids = $saved_query->getParameter('projectPHIDs'); | $project_phids = $saved_query->getParameter('projectPHIDs'); | ||||
if (!$project_phids) { | if (!$project_phids) { | ||||
$project_phids = array(); | $project_phids = array(); | ||||
} | } | ||||
$project_phids[] = $query_column->getProxyPHID(); | $project_phids[] = $query_column->getProxyPHID(); | ||||
$saved_query->setParameter('projectPHIDs', $project_phids); | $saved_query->setParameter('projectPHIDs', $project_phids); | ||||
▲ Show 20 Lines • Show All 1,158 Lines • Show Last 20 Lines |