Indefero

Indefero Commit Details


Date:2011-11-02 03:44:00 (13 years 1 month ago)
Author:William MARTIN
Branch:develop, feature.wiki-default-page, release-1.3
Commit:70f67e6bc674a22a58a694ca2d74ac3986ac27c4
Parents: 05816cb75ae45ba77fa89c31bb770705b083c6b2
Message:Enhancement sort on issue summary view

Changes:

File differences

src/IDF/Views/Issue.php
119119
120120
121121
122
122123
123124
124125
......
126127
127128
128129
130
131
132
133
134
135
129136
130137
131138
......
136143
137144
138145
139
140
141
142
143146
144147
145148
}
$ownerStatistics[$key] = array($nb, (int)(100 * $nb / $opened), $login);
}
arsort($ownerStatistics);
// Issue class tag statistics
$grouped_tags = $prj->getTagCloud();
foreach ($tags as $tag) {
$tagStatistics[$class][$tag->name] = array($tag->nb_use, $tag->id);
}
uasort($tagStatistics[$class], function ($a, $b) {
if ($a[0] === $b[0])
return 0;
return ($a[0] > $b[0]) ? -1 : 1;
});
}
foreach($tagStatistics as $k => $v) {
$nbIssueInClass = 0;
$tagStatistics[$k][$kk] = array($vv[0], (int)(100 * $vv[0] / $nbIssueInClass), $vv[1]);
}
}
// Sort
krsort($tagStatistics);
arsort($ownerStatistics);
}
}

Archive Download the corresponding diff file

Page rendered in 0.08389s using 13 queries.