Basic storage of relations for new issues has been done; the relations

are also properly displayed at the left side in the issue's detail view.
This commit is contained in:
Thomas Keller
2011-05-28 23:48:00 +02:00
parent bcba64b2a1
commit 16dda0743c
8 changed files with 138 additions and 9 deletions

View File

@@ -169,6 +169,24 @@ class IDF_Issue extends Pluf_Model
}
}
function getGroupedRelatedIssues($opts = array())
{
$rels = $this->get_related_issues_list(array_merge($opts, array(
'view' => 'with_other_issue',
)));
$res = array();
foreach ($rels as $rel) {
$verb = $rel->verb;
if (!array_key_exists($verb, $res)) {
$res[$verb] = array();
}
$res[$verb][] = $rel;
}
return $res;
}
/**
* Returns an HTML fragment used to display this issue in the
* timeline.