Tags are now returned grouped by class, I seem to have missed this call

when I changed the API...
This commit is contained in:
Thomas Keller 2011-10-04 00:46:48 +02:00
parent 160d11b89b
commit 9e2ea7404b

View File

@ -119,9 +119,11 @@ class IDF_Views_Issue
} }
// Issue class tag statistics // Issue class tag statistics
$tags = $prj->getTagCloud(); $grouped_tags = $prj->getTagCloud();
foreach ($tags as $t) { foreach ($grouped_tags as $class => $tags) {
$tagStatistics[$t->class][$t->name] = array($t->nb_use, $t->id); foreach ($tags as $tag) {
$tagStatistics[$class][$tag->name] = array($tag->nb_use, $tag->id);
}
} }
foreach($tagStatistics as $k => $v) { foreach($tagStatistics as $k => $v) {
$nbIssueInClass = 0; $nbIssueInClass = 0;