Skip to content

Commit

Permalink
Fix URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed May 22, 2015
1 parent 862995d commit 7a8c054
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main/inc/ajax/model.ajax.php
Expand Up @@ -1402,10 +1402,10 @@ function getWhereClause($col, $oper, $val)
foreach ($result as $group) {
$group['users'] = count($obj->get_users_by_usergroup($group['id']));
if ($obj->usergroup_was_added_in_course($group['id'], $course_id)) {
$url = 'class.php?action=remove_class_from_course&id='.$group['id'];
$url = 'class.php?action=remove_class_from_course&id='.$group['id'].'&'.api_get_cidreq();
$icon = Display::return_icon('delete.png', get_lang('Remove'));
} else {
$url = 'class.php?action=add_class_to_course&id='.$group['id'];
$url = 'class.php?action=add_class_to_course&id='.$group['id'].'&'.api_get_cidreq();
$icon = Display::return_icon('add.png', get_lang('Add'));
}
$group['actions'] = Display::url($icon, $url);
Expand All @@ -1417,7 +1417,7 @@ function getWhereClause($col, $oper, $val)
if (!in_array($sidx, $columns)) {
$sidx = 'name';
}
//Multidimensional sort
// Multidimensional sort
$result = msort($result, $sidx, $sord);
break;
default:
Expand Down Expand Up @@ -1459,10 +1459,10 @@ function getWhereClause($col, $oper, $val)

//5. Creating an obj to return a json
if (in_array($action, $allowed_actions)) {
$response = new stdClass();
$response->page = $page;
$response->total = $total_pages;
$response->records = $count;
$response = new stdClass();
$response->page = $page;
$response->total = $total_pages;
$response->records = $count;

if ($operation && $operation == 'excel') {
$j = 1;
Expand Down

0 comments on commit 7a8c054

Please sign in to comment.