1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 12:00:55 +01:00

Default statuses and priorities to array() correctly

Summary: Fixes T7904. Builtin queries won't set these to anything.

Test Plan: "Authored" builtin works again.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T7904

Differential Revision: https://secure.phabricator.com/D12539
This commit is contained in:
epriestley 2015-04-24 08:39:19 -07:00
parent a903eb2def
commit cdb8ea27e5

View file

@ -141,13 +141,13 @@ final class ManiphestTaskSearchEngine
$datasource = id(new ManiphestTaskStatusFunctionDatasource()) $datasource = id(new ManiphestTaskStatusFunctionDatasource())
->setViewer($this->requireViewer()); ->setViewer($this->requireViewer());
$statuses = $saved->getParameter('statuses'); $statuses = $saved->getParameter('statuses', array());
$statuses = $datasource->evaluateTokens($statuses); $statuses = $datasource->evaluateTokens($statuses);
if ($statuses) { if ($statuses) {
$query->withStatuses($statuses); $query->withStatuses($statuses);
} }
$priorities = $saved->getParameter('priorities'); $priorities = $saved->getParameter('priorities', array());
if ($priorities) { if ($priorities) {
$query->withPriorities($priorities); $query->withPriorities($priorities);
} }