Skip to content
Permalink
Browse files

Fix issue with group in session loosing the session reference - loose…

…ly refs BT#11758
  • Loading branch information...
ywarnier committed Oct 7, 2016
1 parent 256b0aa commit b475b85a25ed4d9294396be735602ec1e94ddfff
Showing with 2 additions and 3 deletions.
  1. +2 −3 main/inc/lib/groupmanager.lib.php
@@ -2131,15 +2131,14 @@ public static function fill_groups_list($groupId)
*/
public static function process_groups($group_list, $category_id = null)
{
global $origin, $charset;
global $charset;
$category_id = intval($category_id);
$totalRegistered = 0;
$group_data = array();
$user_info = api_get_user_info();
$session_id = api_get_session_id();
$user_id = $user_info['user_id'];
$orig = isset($origin) ? $origin : null;
$hideGroup = api_get_setting('hide_course_group_if_no_tools_available');
foreach ($group_list as $this_group) {
@@ -2165,7 +2164,7 @@ public static function process_groups($group_list, $category_id = null)
$groupNameClass = 'muted';
}
$group_name = '<a class="'.$groupNameClass.'" href="group_space.php?cidReq='.api_get_course_id().'&origin='.$orig.'&gidReq='.$this_group['id'].'">'.
$group_name = '<a class="'.$groupNameClass.'" href="group_space.php?'.api_get_cidreq(true, false).'&gidReq='.$this_group['id'].'">'.
Security::remove_XSS($this_group['name']).'</a> ';
if (!empty($user_id) && !empty($this_group['id_tutor']) && $user_id == $this_group['id_tutor']) {
$group_name .= Display::label(get_lang('OneMyGroups'), 'success');

0 comments on commit b475b85

Please sign in to comment.
You can’t perform that action at this time.