Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c7332713
Commit
c7332713
authored
Mar 29, 2019
by
Robert Lyon
Committed by
Gerrit Code Review
Mar 29, 2019
Browse files
Merge "Bug 1821107: Getting institution pages report graph to render"
parents
63f70958
83c1aaa5
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/lib/statistics.php
View file @
c7332713
...
@@ -2948,8 +2948,10 @@ function institution_view_type_graph($type = null, $institutiondata) {
...
@@ -2948,8 +2948,10 @@ function institution_view_type_graph($type = null, $institutiondata) {
function
institution_view_type_graph_render
(
$type
=
null
,
$extradata
)
{
function
institution_view_type_graph_render
(
$type
=
null
,
$extradata
)
{
$data
[
'graph'
]
=
(
$type
)
?
$type
:
'pie'
;
$data
[
'graph'
]
=
(
$type
)
?
$type
:
'pie'
;
$data
[
'jsondata'
]
=
get_field
(
'institution_data'
,
'value'
,
'type'
,
'view-type-graph'
,
'institution'
,
$extradata
->
institution
);
if
(
$jsondata
=
json_decode
(
get_field
(
'institution_data'
,
'value'
,
'type'
,
'view-type-graph'
,
'institution'
,
$extradata
->
institution
)))
{
$data
[
'jsondata'
]
=
json_encode
(
$jsondata
[
0
]);
return
$data
;
return
$data
;
}
}
}
function
institution_user_type_graph
(
$type
=
null
,
$institutiondata
)
{
function
institution_user_type_graph
(
$type
=
null
,
$institutiondata
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment