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

@@ -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;