Commit 2e6b77b1 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 853662: Adding back in the truncation of data for a graph



Change-Id: Ibbc2e25bd9ed429ea1bbf48702ba0f249ad96a25
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 903383b3
......@@ -952,6 +952,8 @@ function user_institution_graph($type = null) {
$dataarray[$i->displayname][get_string('institution')] = $i->members;
}
arsort($dataarray);
// Truncate to avoid trying to fit too many results onto graph
$dataarray = array_slice($dataarray, 0, 25, true);
$data['graph'] = ($type) ? $type : 'bar';
$data['graph_function_name'] = 'user_institution_graph';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment