1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-01 18:30:59 +01:00

Fix an issue with multiple "open" statuses and the "View All" button on Projects

Summary: See IRC. We construct this a little bit wrong if there are multiple "open" statuses. Use a more modern construction.

Test Plan: Hit `?statuses=wontfix,invalid`, etc. Clicked "view all" from projects.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D8854
This commit is contained in:
epriestley 2014-04-24 10:35:28 -07:00
parent 2ac8457cb9
commit ea66aead59
2 changed files with 10 additions and 4 deletions

View file

@ -24,8 +24,14 @@ final class ManiphestTaskSearchEngine
'subscriberPHIDs',
$this->readPHIDsFromRequest($request, 'subscribers'));
$saved->setParameter('statuses', $request->getArr('statuses'));
$saved->setParameter('priorities', $request->getArr('priorities'));
$saved->setParameter(
'statuses',
$this->readListFromRequest($request, 'statuses'));
$saved->setParameter(
'priorities',
$this->readListFromRequest($request, 'priorities'));
$saved->setParameter('group', $request->getStr('group'));
$saved->setParameter('order', $request->getStr('order'));

View file

@ -147,8 +147,8 @@ final class PhabricatorProjectProfileController
$task_list->setHandles($handles);
$phid = $project->getPHID();
$view_uri = sprintf(
'/maniphest/?statuses[]=%s&allProjects[]=%s#R',
$view_uri = urisprintf(
'/maniphest/?statuses=%s&allProjects[]=%s#R',
implode(',', ManiphestTaskStatus::getOpenStatusConstants()),
$phid);
$create_uri = '/maniphest/task/create/?projects='.$phid;