diff options
Diffstat (limited to 'admin')
-rw-r--r-- | admin/WebConsole/rest/server.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/admin/WebConsole/rest/server.php b/admin/WebConsole/rest/server.php index c55d6709..c7c153ad 100644 --- a/admin/WebConsole/rest/server.php +++ b/admin/WebConsole/rest/server.php @@ -407,6 +407,10 @@ EOD; $tmp['name'] = $rs->campos["nombreaula"]; $tmp['inremotepc'] = ($rs->campos["inremotepc"] == 1); $tmp['group']['id'] = (int)$rs->campos["grupoid"]; + $tmp['classroomGroups'] = array(); + if (isset($rs->campos["nombregrupoordenador"])){ + $tmp['classroomGroups'] = array(array("id" => (int)$rs->campos["group_id"], "name" => $rs->campos["nombregrupoordenador"], "comments" => $rs->campos["comentarios"], "classroomGroups" => array())); + } $tmp['ou']['id'] = (int)$ouid; array_push($response, $tmp); } |