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:
parent
a903eb2def
commit
cdb8ea27e5
1 changed files with 2 additions and 2 deletions
|
@ -141,13 +141,13 @@ final class ManiphestTaskSearchEngine
|
|||
|
||||
$datasource = id(new ManiphestTaskStatusFunctionDatasource())
|
||||
->setViewer($this->requireViewer());
|
||||
$statuses = $saved->getParameter('statuses');
|
||||
$statuses = $saved->getParameter('statuses', array());
|
||||
$statuses = $datasource->evaluateTokens($statuses);
|
||||
if ($statuses) {
|
||||
$query->withStatuses($statuses);
|
||||
}
|
||||
|
||||
$priorities = $saved->getParameter('priorities');
|
||||
$priorities = $saved->getParameter('priorities', array());
|
||||
if ($priorities) {
|
||||
$query->withPriorities($priorities);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue