1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Don't fatal after failing to load grouped projects in Maniphest

Summary: Fixes T3817. This junk is getting wiped out soon so I'm punting here
and fixing the symptom rather than the root cause.

Auditors: btrahan
This commit is contained in:
epriestley 2013-09-11 08:44:53 -07:00
parent 1fa59c2e42
commit 004edbaf7c

View file

@ -633,7 +633,10 @@ final class ManiphestTaskListController extends ManiphestController {
$grouped = array();
foreach ($query->getGroupByProjectResults() as $project => $tasks) {
foreach ($tasks as $task) {
$group = $project ? $handles[$project]->getName() : 'No Project';
$group = 'No Project';
if ($project && isset($handles[$project])) {
$group = $handles[$project]->getName();
}
$grouped[$group][$task->getID()] = $task;
}
}