Fix Maniphest links w.r.t. new "status" data format

Summary: 0 => imploded string of hotness.  Fixes T4689

Test Plan: for each spot i fixed, clicked link and it worked! (I did a grep for "/maniphest" to find these spots; 98% confident I got them all.)

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T4689

Differential Revision: https://secure.phabricator.com/D8626
This commit is contained in:
Bob Trahan
2014-03-28 12:59:09 -07:00
parent 1a36f24eb8
commit 8d41d9d8f8
4 changed files with 17 additions and 8 deletions

View File

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