From 9e2ea7404b46d53b558c290613e6cf85fe9e0f40 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Tue, 4 Oct 2011 00:46:48 +0200 Subject: [PATCH] Tags are now returned grouped by class, I seem to have missed this call when I changed the API... --- src/IDF/Views/Issue.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/IDF/Views/Issue.php b/src/IDF/Views/Issue.php index 854b9b9..a8e52fd 100644 --- a/src/IDF/Views/Issue.php +++ b/src/IDF/Views/Issue.php @@ -119,9 +119,11 @@ class IDF_Views_Issue } // Issue class tag statistics - $tags = $prj->getTagCloud(); - foreach ($tags as $t) { - $tagStatistics[$t->class][$t->name] = array($t->nb_use, $t->id); + $grouped_tags = $prj->getTagCloud(); + foreach ($grouped_tags as $class => $tags) { + foreach ($tags as $tag) { + $tagStatistics[$class][$tag->name] = array($tag->nb_use, $tag->id); + } } foreach($tagStatistics as $k => $v) { $nbIssueInClass = 0;