Commit 83c1aaa5 authored by Robert Lyon's avatar Robert Lyon Committed by Cecilia Vela Gurovic
Browse files

Bug 1821107: Getting institution pages report graph to render

This one was not fixed when the site ones were fixed in


Change-Id: I290d24b0d5abdddca132ec331a38bf0d2176a0ee
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent ec17b5f1
......@@ -2948,8 +2948,10 @@ function institution_view_type_graph($type = null, $institutiondata) {
function institution_view_type_graph_render($type = null, $extradata) {
$data['graph'] = ($type) ? $type : 'pie';
$data['jsondata'] = get_field('institution_data','value','type','view-type-graph','institution', $extradata->institution);
return $data;
if ($jsondata = json_decode(get_field('institution_data','value','type','view-type-graph','institution', $extradata->institution))) {
$data['jsondata'] = json_encode($jsondata[0]);
return $data;
function institution_user_type_graph($type = null, $institutiondata) {
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